Bol5261 2021-10-12 05:12 采纳率: 97.5%
浏览 38
已结题

SQL 语句中 exists和not exists的用法?


create table if not exists test_tb1 (
test_id int unsigned auto_increment,
test_title varchar(100) not null,
test_author varchar(40) not null,
test_date date,
primary key (test_id)
)engine=InnoDB default charset=utf8;

其中的含意?

  • 写回答

1条回答 默认 最新

  • 於黾 2021-10-12 05:27
    关注

    如果不存在就创建。存在还执行create语句会报错

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
编辑
预览

报告相同问题?

问题事件

  • 系统已结题 10月19日
  • 已采纳回答 10月12日
  • 创建了问题 10月12日