失败原因:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '( *) FROM cat' at line 1
...全文
2415打赏收藏
我使用PB9连接mysql,driver的版本是3.51,执行SQL失败,各位帮帮忙吧
SELECT count(*) into :li_Cnt FROM cat; 失败原因: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '( *) FROM cat' at line 1
DECLARE my_cursor DYNAMIC CURSOR FOR SQLSA ;
PREPARE SQLSA FROM "select count(*) from cat" ;
OPEN DYNAMIC my_cursor ;
FETCH my_cursor INTO :ll_count;
CLOSE my_cursor ;