[求助]1064 批量出入数据库 声明变量函数老是出现这个错误
本帖最后由 caiw0418 于 2011-1-11 15:30 编辑use DM;
Affected rows: 0
Time: 0.000ms
DECLARE @kk INT;
1064 - 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 'DECLARE @kk INT' at line 1
请高手请教~ use DM;
DECLARE @kk INT;
SET @kk = 1000;
WHILE @kk <= 2000
BEGIN
insert into TaskExecution(TaskID,WorkerID,Data,IP,Type,WorkerPrice,IsPaid) VALUES(@kk,@kk,'quantitative','192.168.0.1',1,1,0);
SET @kk=@kk+1;
END// 上面是我写的数据库函数 没看出来
页:
[1]