studygolang.xml 1.3 KB

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