asp与数据库的一个问题
来源:百度知道 编辑:UC知道 时间:2024/05/20 19:25:01
我想查询整个数据库(里面只有一个表test)等于"&dier1&"这个变量的项该怎么写那句话:
sql="select * from test='"&dier1&"' "
是这样吗?
sql="select * from test='"&dier1&"' "
是这样吗?
查询整个数据库的话必须有一个表就用一次查询 ...
sql="select * from table1 where test='"&dier1&"' "
sql="select * from table2 where test='"&dier1&"' "
sql="select * from table3 where test='"&dier1&"' "
sql="select * from test where 列名='"&cstr(dier1)&"'"
列名是表中的列名