数据库的delete有关问题
数据库的delete问题delete from usercopy where ID2和delete from usercopy where ID in(select ID from
数据库的delete问题
delete from usercopy where ID=2;和delete from usercopy where ID in(select ID from userinfo where ID='2');一样吗?为什么一个是2一个是‘2’?
[解决办法]
加单引号表示数据库中该字段是字符串类型的,不加表示是数值类型的字段。
[解决办法]