select * from tablename where id=<其中是我的参数要和整形id匹配>

[复制链接]
查看11 | 回复3 | 2007-8-17 13:39:33 | 显示全部楼层 |阅读模式
整型,如果你确定是数值型的话,那么 代码这样写就好了select * from tablename where id = cast(id as integer)即可。。回答完毕
回复

使用道具 举报

千问 | 2007-8-17 13:39:33 | 显示全部楼层
yes
回复

使用道具 举报

千问 | 2007-8-17 13:39:33 | 显示全部楼层
这么多人回答,看来我来晚啦。
回复

使用道具 举报

千问 | 2007-8-17 13:39:33 | 显示全部楼层
select * from tablename where id='"+id+"'select * from tablename where id=+@id+
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行