CNDEV
...
...
账号
登
登录
先
先随便看看
中国开发网
: 论坛:
程序员情感CBD
: 贴子 123308
tweety
·
2005-04-06 03:25:43
·
阅读: 366
什么数据库?你的语句怎么写的?
<空>
相关信息:
update语句中允许不允许用select field from table as temptable这样的语句?
(空) (
xiaolongren
[470]
2005-04-06 11:19
)
什么数据库?你的语句怎么写的?
(空) (
tweety
[365]
2005-04-06 11:25
)
postgresql数据库。
(414字)
(
xiaolongren
[363]
2005-04-06 11:31
)
试试这么写,update table set (field)=(select fieldxxx from ... ) a where ....
(空) (
tweety
[614]
2005-04-06 11:37
)
有错。
(92字)
(
xiaolongren
[295]
2005-04-06 11:57
)
这个where是我随便写的,表示更新记录的过滤条件,连接条件应该在括号里写,不用别名也可以
(136字)
(
tweety
[370]
2005-04-06 12:00
)
谢了。
(空) (
xiaolongren
[283]
2005-04-06 12:40
)
sqlserver是这么写的
(66字)
(
Jonney
[357]
2005-04-06 12:30
)
postgresql也是这么写的。刚才haitao给我看了语法规范,试成功了。谢谢。
(空) (
xiaolongren
[327]
2005-04-06 12:41
)
欢迎光临本社区,您还没有登录,不能发贴子。请在
这里登录