{"id":233396,"date":"2022-01-12T10:13:55","date_gmt":"2022-01-12T02:13:55","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=233396"},"modified":"2021-12-30T13:19:33","modified_gmt":"2021-12-30T05:19:33","slug":"postgresql-linux-go","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/postgresql-linux-go.html","title":{"rendered":"\u89e3\u6790postgresql \u5220\u9664\u91cd\u590d\u6570\u636e\u6848\u4f8b"},"content":{"rendered":"
\u5bfc\u8bfb<\/td>\n | \u8fd9\u7bc7\u6587\u7ae0\u4e3b\u8981\u4ecb\u7ecd\u4e86postgresql \u5220\u9664\u91cd\u590d\u6570\u636e\u6848\u4f8b\u8be6\u89e3,\u672c\u7bc7\u6587\u7ae0\u901a\u8fc7\u7b80\u8981\u7684\u6848\u4f8b,\u8bb2\u89e3\u4e86\u8be5\u9879\u6280\u672f\u7684\u4e86\u89e3\u4e0e\u4f7f\u7528,\u4ee5\u4e0b\u5c31\u662f\u8be6\u7ec6\u5185\u5bb9,\u9700\u8981\u7684\u670b\u53cb\u53ef\u4ee5\u53c2\u8003\u4e0b \n<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n 1.\u5efa\u8868<\/strong><\/span><\/div>\n \/*\r\n Navicat Premium Data Transfer\r\n \r\n Source Server : localhost\r\n Source Server Type : PostgreSQL\r\n Source Server Version : 110012\r\n Source Host : localhost:5432\r\n Source Catalog : postgres\r\n Source Schema : public\r\n \r\n Target Server Type : PostgreSQL\r\n Target Server Version : 110012\r\n File Encoding : 65001\r\n \r\n Date: 30\/07\/2021 10:10:04\r\n*\/\r\n \r\n \r\n-- ----------------------------\r\n-- Table structure for test\r\n-- ----------------------------\r\nDROP TABLE IF EXISTS \"public\".\"test\";\r\nCREATE TABLE \"public\".\"test\" (\r\n \"id\" int4 NOT NULL DEFAULT NULL,\r\n \"name\" varchar(255) COLLATE \"pg_catalog\".\"default\" DEFAULT NULL,\r\n \"age\" int4 DEFAULT NULL\r\n)\r\n;\r\n \r\n-- ----------------------------\r\n-- Records of test\r\n-- ----------------------------\r\nINSERT INTO \"public\".\"test\" VALUES (1, 'da', 1);\r\nINSERT INTO \"public\".\"test\" VALUES (2, 'da', 12);\r\nINSERT INTO \"public\".\"test\" VALUES (3, 'dd', 80);\r\nINSERT INTO \"public\".\"test\" VALUES (4, 'dd', 80);\r\nINSERT INTO \"public\".\"test\" VALUES (5, 'd1', 13);\r\n \r\n-- ----------------------------\r\n-- Primary Key structure for table test\r\n-- ----------------------------\r\nALTER TABLE \"public\".\"test\" ADD CONSTRAINT \"test_pkey\" PRIMARY KEY (\"id\");<\/pre>\n |