摘要:
select count(*) from pg_class where relname = tableName ; 这里查询的tableName是区分大小写的。 select * from tableName order by columnName limit x offset y; 这里order 阅读全文
摘要:
实现更新或保存的基本语法是: insert into A set a1='xx2',a2='xx1', ON DUPLICATE key update a9=''; 需要满足的条件,set的字段列表有惟一键约束,可以是单个的字段也可以是联合惟一键, 比如a1,a2组成联合惟一键,那么在执行插入操作的 阅读全文
摘要:
父类:public class A { private int i = print("this is a common variable"); private static int j = print("this is a static common variable"); public A(){ 阅读全文
摘要:
drop procedure if exists test; create procedure test() begin declare i int; #申明变量 declare count int; #申明变量 set i = 0; #变量赋值 set count=(select count(*) 阅读全文