暂无图片
下列SQL语句能够正确执行的有:
我来答
分享
小鲁菜
2024-06-13
下列SQL语句能够正确执行的有:

(多选题)下列SQL语句能够正确执行的有:

    A. begin; table t; insert into t(id) values(1 ); commit;

    B .\set ON_ERROR_ROLLBACK on begin; table t; insert into t(id) values(1); commit;

    C. \set ON_ERROR_ROLLBACK off begin; table t; insert into t(id) values(1 ); commit;

    D. Begin; table t; ROLLBACK; insert into t(id) values(1); commit;

我来答
添加附件
收藏
分享
问题补充
2条回答
默认
最新
伟鹏

B C

暂无图片 评论
暂无图片 有用 0
小鲁菜
题主
2024-06-14
halo0root=# create table t(id int); CREATE TABLE halo0root=# begin; table t; insert into t(id) values(1 ); commit; BEGIN id ---- (0 行记录) INSERT 0 1 COMMIT halo0root=# \set ON_ERROR_ROLLBACK on begin; table t; insert into t(id) values(1); commit; "ON_ERROR_ROLLBACK"的不能识别的值"onbegin;tablet;insertintot(id)values(1);commit;" 可用值为"on, off, interactive". halo0root=#
小鲁菜

你约莫不是在骗我?

暂无图片 评论
暂无图片 有用 0
回答交流
提交
问题信息
请登录之后查看
邀请回答
暂无人订阅该标签,敬请期待~~
暂无图片墨值悬赏