select column_name,column_comment from INFORMATION_SCHEMA.columns where table_name='my_table';或者show full columns from my_table其中my_table为具体的表名。
分类:
数据库 时间:
2015-05-03 15:55:10
阅读次数:
142
protected void bindhbdata(string chatid){ string sql = "select * from staff where wechatid='"+ chatid +"'"; SqlDataReader dr = SqlHelper.ExecuteReader...
分类:
其他好文 时间:
2015-05-03 13:15:07
阅读次数:
141
1、Oracle 分页 第一种:利用分析函数row_number() 方法 select * from( ? ?select t.*,row_number() over (order by t1.id) rowno from TABLE1 ) where rowno between 21 and 40; 第二种:直接使用rownum 虚列...
分类:
数据库 时间:
2015-05-03 00:54:37
阅读次数:
265
Description
A thief is running away!
We can consider the city where he locates as an undirected graph in which nodes stand for crosses and edges stand for streets. The crosses are labeled from 0 ...
分类:
其他好文 时间:
2015-05-02 22:06:46
阅读次数:
204
描述:
有6条配置命令,它们执行的结果分别是:
命 令 执 行
reset reset what
reset board board fault
board add where to add
board delet no board at all
reboot backplane impossible
backpl...
分类:
其他好文 时间:
2015-05-02 18:13:56
阅读次数:
713
-------------自己测试---------------select sname,sum(smon)from studentgroup by snamehaving sum(smon)>7---------------自己测试-----------------下面是正文当同时含有where子...
分类:
数据库 时间:
2015-05-02 18:05:06
阅读次数:
127
SELECT ph, sum(slye) from(select ph,decode(SSSL,null,0,SSSL)SLYE from BB_MJ_KCRKD2_TB where to_char(ywrq,'yyyymm')0UNION ALLSELECT ph,decode(SFSL,null...
分类:
其他好文 时间:
2015-05-02 16:34:37
阅读次数:
103
1.SQL语句if not exists ( select 1 from tb where xxx='XXX') //不存在,则插入数据 begin insert into tb(xxx) values('XXX') //这里自己定义,插入或更新都可以 end...
分类:
数据库 时间:
2015-05-02 16:28:30
阅读次数:
151
带异常的存储过程:declare2 v_ename varchar2(5);3 v_sal number(7,2);4 begin5 select ename,sal into v_ename,v_sal from emp1 where empno=7500;6 dbms_output.put_li...
分类:
其他好文 时间:
2015-05-02 16:21:30
阅读次数:
137
This tutorial covers install and configuration of Oracle Data Integration (ODI) 12.1.3 from command line on platforms where Graphical User Interface (...
分类:
数据库 时间:
2015-05-02 11:09:01
阅读次数:
272