delect from USERS。
删除USERS表中的所有数据。
第一个问题:这句话在Oracle里面是可以的,到MySQL里面就是错误的了,那么MySQL里面是怎么删除的?
第二个问题:delect from USERS where idUSERS>0。在MySQL Workbeach里面能删除数据,但是在java里面通过jdbc就报错: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 'delect from USERS where idUSERS>'0'' at line 1。执行其他的语句是正常的。
刚接触MySQL,不熟悉,求解!
删除USERS表中的所有数据。
第一个问题:这句话在Oracle里面是可以的,到MySQL里面就是错误的了,那么MySQL里面是怎么删除的?
第二个问题:delect from USERS where idUSERS>0。在MySQL Workbeach里面能删除数据,但是在java里面通过jdbc就报错: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 'delect from USERS where idUSERS>'0'' at line 1。执行其他的语句是正常的。
刚接触MySQL,不熟悉,求解!
在MYSQL中可以执行,没有问题。 你的错误提示是什么?
drop USERS;
应该这样
详细说明,表结构是否一致,打开事务没有
他是把单词拼错了delete写成了delect
idUSERS(number(8)),USERNAME(varcher2(12)),idKEY(char(128)),loadDATE(date)。
try{
插入语句:
for(int m=0;m<1000000;m++){
String idKEY="00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000";
idKEY=idKEY+m;
String sql="insert into USERS (idUSERS,USER_NAME,idKEY,loadDATE) VALUES ("+m+",'name"+m+"','"+idKEY+"','"+"31-10月-11')";//日期MySQL的为:“11-10-31”
st.executeUpdate(sql);//执行语句
System.out.println(m);
}
还有什么地方会导致速度差距的问题?