GBase 8a
运维管理
文章

同义词创建语法

发表于2025-06-25 14:55:5649次浏览2个评论

drop table if exists t1;
create table t1 (col1 int,col2 varchar(10));
insert into t1 values(1,'a');
select * from t1;
create synonym s1 for t1;
insert into s1 values(2,'b');
select * from s1;
update s1 set col2='aaa' where col1=1;
delete from s1 where col1=1;
select * from s1;
drop synonym s1;

评论

登录后才可以发表评论
用户头像
levvel发表于 3个月前
哎呀,怎么说呢,嗯......
用户头像
levvel发表于 3个月前
嗯,只能说不错!