Mysql函数getLastMediaId()DECLARE Lid INT; RETURN(Lid); Mysql过程IF last_id=0 THEN SET lid=getLastMediaId(); END IF;
SELECT * FROM projectmedia WHERE id < la
每当游标有数据时,我都可以调用cnxn.commit(),但是当游标为空时,它使用cursor.execute("call getNames")抛出cnxn.commit() mariadb.InterfaceError: Commands out of sync; you can't run this command now