postgreSql 判断表不存在而创建表

来源:互联网 发布:淘宝怎么卖眼药水 编辑:程序博客网 时间:2024/05/20 06:31
  1. create table if not exists bar_code   
  2. (  
  3.   "barcodeEan" varchar(13) NOT NULL PRIMARY KEY,  
  4.   "itemId" int NOT NULL  
  5. )  

  1.    
这个好像需要postgresql某些版本及以上的才支持

0 0