新手问一下,查询数据库的~~
怎么在数据库语句中加入变量????比如语句:
select * from news where id=7
我想用
int a=7;
然后a来代替数字7,或是
string b=news;
然后用b来代替表名news,实现类似下面的查询:
select * from b where id=a
可不可以这样????
2006-03-29 14:47
2006-03-29 16:03
2006-03-29 17:33
2006-03-30 09:29

2006-03-30 10:20

2006-03-30 10:34
2006-03-30 12:21
行了,谢谢~~~

2006-03-30 13:35
不同的类型都用什么符号???

2006-03-30 13:35
2006-03-30 13:43