06 2019 档案

摘要:一.查询 select * from (select a,b from table order by c) where rownum<=1 --在table表中根据字段c排序查询,取第一条数据 select * from 表 where 字段 <> '123' or 字段 is null; --查询 阅读全文
posted @ 2019-06-28 10:19 奶茶先生 阅读(161) 评论(0) 推荐(0)
摘要:一.建表 CREATE TABLE 表(ID INTEGER not null,NAME NVARCHAR2(256),DEL_FLG int,CONSTRAINT "PF_表" PRIMARY KEY ("ID") ) 二.创建序列 CREATE SEQUENCE 表_IDINCREMENT BY 阅读全文
posted @ 2019-06-27 16:29 奶茶先生 阅读(2087) 评论(0) 推荐(0)
摘要:前台 <asp:DropDownList runat="server" ID="aa"></asp:DropDownList> 后台 public void Bind1() {aa.DataSource = s1.select("SELECT ID,name FROM 表 ");aa.DataTex 阅读全文
posted @ 2019-06-24 16:06 奶茶先生 阅读(406) 评论(0) 推荐(0)
摘要:一.查询 select * from 表 where 条件 根据条件查询所有 select top 15 * from 表1 a join 表2 b on a.id =b.id where 1=1 order by a.id,.... desc --连表查询显示前15行 select 字段1,cou 阅读全文
posted @ 2019-06-24 14:22 奶茶先生 阅读(381) 评论(1) 推荐(0)