like 搜索like 搜索create table name_db (name varchar(20));insert into name_db values('abc'),('bac'),('bca');select * from name_db where name like 'a%'; --...
分类:
其他好文 时间:
2015-09-11 08:04:18
阅读次数:
172
select * from dba_tables where owner = 'DINGYINGSI';select * from user_col_comments where table_name = 'STUDENT';comment on table "STUDENT" is '这是学生信息...
分类:
数据库 时间:
2015-09-10 22:42:53
阅读次数:
243
MySQL中select的基本语法形式:select 属性列表from 表名和视图列表[where 条件表达式][group by 属性名[having 条件表达式]][order by 属性名[asc|desc]][limit ,row count]说明:where子句:按照“条件表达式”指定的条...
分类:
数据库 时间:
2015-09-10 21:01:54
阅读次数:
245
Problem DescriptionAstronomers often examine star maps where stars are represented by points on a plane and each star has Cartesian coordinates. Let t...
分类:
编程语言 时间:
2015-09-10 19:31:42
阅读次数:
147
Givennnon-negative integersa1,a2, ...,an, where each represents a point at coordinate (i,ai).nvertical lines are drawn such that the two endpoints of ...
分类:
其他好文 时间:
2015-09-10 16:06:48
阅读次数:
101
1.子查询在WHERE子句中 子查询嵌入的语句称作主查询或父查询 主查询可以是SELECT语句,也可以是其它类型的语句比如:DML或DDL语句 根据返回值的不同,子查询可分为单行子查询、多行子查询及多列子查询 如果子查询返回多行,主查询中要使用多行比较操作符 多行比较操作符包括IN、A...
分类:
其他好文 时间:
2015-09-10 15:39:04
阅读次数:
188
declare @databasename nvarchar(100)--定义游标以及赋值 获取所有Online的Database Namedeclare getDataBaseCursor cursor for select name from master.sys.databases where...
分类:
数据库 时间:
2015-09-10 13:07:34
阅读次数:
211
查询语句的执行顺序依下列子句次序: 1.from 子句:执行顺序为从后往前、从右到左 数据量较少的表尽量放在后面 2.where子句:执行顺序为自下而上,从右到左 将能过滤掉最大数量记录的条件写在WHERE子句的最右 3.group by--执行顺序从左往右分组 最好在
分类:
其他好文 时间:
2015-09-10 13:04:37
阅读次数:
133
1、执行sql:select /*+ parallel(a,4) */ * from tf_f_user a where rownum<100000;2、如何查看该sql语句的并行数量:select t.sql_text,t.sql_id,s.sid from v$sql t,v$session s...
分类:
数据库 时间:
2015-09-10 12:50:52
阅读次数:
616
以Good和GoodStatus为例:一、注解仅添加在一方:@Entity@Table(name = "GOOD")@Where(clause="enabled=1") //Used for logical delete, disabled objects are always hiddenpubl...
分类:
Web程序 时间:
2015-09-10 10:45:02
阅读次数:
180