09 2014 档案

摘要:本文转自:http://blog.chinaunix.net/uid-17079336-id-2832443.html1、创建表的同时创建主键约束(1)无命名create table student (studentid int primary key not null,studentname va... 阅读全文

posted @ 2014-09-23 13:29 沈恩忍 阅读(995) 评论(0) 推荐(0)

摘要:如TEST表有3表字段 id name address如下:id name address1 小二 北京2 小二 东京3 小二 北京4 小刘 南京如要查出name 和 address 重复的数据。select * from ( select name,address,count(0)... 阅读全文

posted @ 2014-09-10 16:58 沈恩忍 阅读(201) 评论(0) 推荐(0)

摘要:以前的exlipse PHP插件老是有问题,下面这个地址可以使用。http://www.phpsrc.org/eclipse/pti/ 阅读全文

posted @ 2014-09-04 18:37 沈恩忍 阅读(187) 评论(0) 推荐(0)

摘要:--查询某个表是否有唯一主键select cu.* from user_cons_columns cu, user_constraints au where cu.constraint_name = au.constraint_name and au.constraint_type = 'P' an... 阅读全文

posted @ 2014-09-04 13:48 沈恩忍 阅读(3031) 评论(0) 推荐(0)

导航