-
Notifications
You must be signed in to change notification settings - Fork 222
/
studygolang.xml
54 lines (50 loc) · 1.45 KB
/
studygolang.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<sqlMap>
<sql id="selectAllArticle">
select id,title,createdatetime,content
from Article where id in (?1,?2)
</sql>
<sql id="selectStudentById1">
select * from user where id=?id and 1=1
</sql>
<sql id="sql_2_1">
select id,title,createdatetime,content from Article where id = ?id
</sql>
<sql id="sql_i_1">
INSERT INTO categories VALUES (?id, ?name, ?counts, ?orders, ?pid)
</sql>
<sql id="sql_i_2">
INSERT INTO categories VALUES (?id, ?name, ?counts, ?orders, ?pid)
</sql>
<sql id="category">
select * from category
</sql>
<sql id="category-16-17">
select * from category where id in (16,17)
</sql>
<sql id="create_1">
<![CDATA[
DROP TABLE IF EXISTS "public"."categories11";
CREATE TABLE "public"."categories11" (
"id" int4 NOT NULL,
"name" varchar(200) COLLATE "default" NOT NULL,
"counts" int4 NOT NULL,
"orders" int4 NOT NULL,
"pid" int4 NOT NULL
)
WITH (OIDS=FALSE)
;
-- ----------------------------
-- Records of categories
-- ----------------------------
INSERT INTO "public"."categories11" VALUES ('16', 'aaa', '1', '1', '1');
INSERT INTO "public"."categories11" VALUES ('17', 'xxx', '1', '1', '1');
-- ----------------------------
-- Alter Sequences Owned By
-- ----------------------------
-- ----------------------------
-- Primary Key structure for table categories
-- ----------------------------
ALTER TABLE "public"."categories11" ADD PRIMARY KEY ("id");
]]>
</sql>
</sqlMap>