Chinaunix

标题: 【请教】sybase中如何使选出的结果前添加一个行标识 [打印本页]

作者: choki    时间: 2007-09-10 16:57
标题: 【请教】sybase中如何使选出的结果前添加一个行标识
select identity(int) id0,* into #temp from tablename
?


运行报

Msg 207, Level 16, State 4:Invalid column name 'int'.
作者: holy_sky    时间: 2007-09-10 19:13
关注中……
作者: chuxu    时间: 2007-09-11 08:13
select id0=identity(10),* into #temp from tablename
作者: choki    时间: 2007-09-11 09:41
原帖由 chuxu 于 2007-9-11 08:13 发表
select id0=identity(10),* into #temp from tablename




yes

3x




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2