<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>
