你应该知道
update的用法吧。_______________________________________________________________多多交流 共同进步
[email protected]
http://nizvoo.myrice.com
_______________________________________________________________
update的用法吧。_______________________________________________________________多多交流 共同进步
[email protected]
http://nizvoo.myrice.com
_______________________________________________________________
解决方案 »
- 如何将上月的余额累加到本月的可报数?请教大家
- 求SQL:满足条件的第一条记录
- 存储过程 A 引用存储过程 B,如果出错了,事物回滚的问题
- SQL触发器的问题?
- 一个比较难的sql语句
- 跪求一SQL查询语句,急急急!!!
- Microsoft OLE DB Provider for ODBC Drivers 错误 '80004005'
- 一个简单的SQL插入句子的写法。。。。。。。。。。
- 请教各位:应聘工作面试时他们主要问哪些方面的问题?我该如何提前做好准备?
- 为什么有的98系统下ODBC不能连接局域网另外一台机器Sqlserver2000的数据库?
- 怎么直接复制MS SQL Server的数据库?????
- 各位大虾 dblink 怎么用啊??急!
select * from table where (update table set id=1 where pass=0)
只是这个写法不对。
只能分开写
这算什么条件呀
如果是:
oracle:
select decode(id,0,1,id),...,...
from table
where id in (0,1);
SQL-server:
把decode 改成iif
select iif(id=0,1,id),...,...
from table
where id in (0,1);
如果是:
oracle:
select decode(id,0,1,id),...,...
from table
where id in (0,1);
SQL-server:
把decode 改成iif
select iif(id=0,1,id),...,...
from table
where id in (0,1);