首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > VB >

数据库的delete有关问题

2012-02-10 
数据库的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’?

[解决办法]
加单引号表示数据库中该字段是字符串类型的,不加表示是数值类型的字段。
[解决办法]

探讨
delete from usercopy where ID=2;和delete from usercopy where ID in(select ID from userinfo where ID='2');一样吗?为什么一个是2一个是‘2’?

热点排行