请问:在sybase中有没有像oracle中那样的伪列rowid

okcai 2001-08-30 02:13:27
在oracle中的伪列rowid由于是数据行唯一的物理标记,
所以在很多处理中比较方便
不知道在sybase中有没有这样的东东。
...全文
520 4 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
okcai 2001-08-30
  • 打赏
  • 举报
回复
还有个问题想在这里一块请教。在oracle中,我喜欢用
外连接代替not in查询(还有其他的方法,比如用not exists或者minus)
比如:查询A表中有但是B表中没有的,在oracle中可以用
select A.* from A,B
where A.field1=B.field1(+)
and B.field1 is null
但是在sybase中,我用
select A.* from A,B
where A.field1=*B.field1
and B.field1 is null

或者
select A.* from A,B
where A.field1=*B.field1
and B.field1=null
都是不对!而且也没有minus,呵呵,我只好用
select A.* from A
where not exists (select 'ppp' from B where B.field1=A.field1)

不知道那位能说一下,是什么原因?
okcai 2001-08-30
  • 打赏
  • 举报
回复
我是要物理上的。不用修改表结构的。
如果那样我很多的表岂不是全部要修改?那不是我想要的。
swordmanli 2001-08-30
  • 打赏
  • 举报
回复
加一个自动增加的identity的列,不就解决了嘛!
devid 2001-08-30
  • 打赏
  • 举报
回复
没有,

2,598

社区成员

发帖
与我相关
我的任务
社区描述
Sybase相关技术讨论区
社区管理员
  • Sybase社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧