题目:Given a 2D board and a word, find if the word exists in the grid.The word can be constructed from letters of sequentially adjacent cell, where "adj...
分类:
其他好文 时间:
2015-05-29 13:39:20
阅读次数:
117
--读取库中的所有表名select name from sysobjects where xtype='u'--读取指定表的所有列名select name from syscolumns where id=(select max(id) from sysobjects where xtype='u'...
分类:
数据库 时间:
2015-05-29 13:31:47
阅读次数:
148
1.普通备份 mysql
改密码:
mysql-nt??--skip-grant-tables
use?mysql;
UPDATE?user?SET?password=PASSWORD("123456")?WHERE?user=‘root‘;
flush??privileges;
---------------------------
#创建用户r...
分类:
数据库 时间:
2015-05-29 12:23:48
阅读次数:
184
Problem Description
Astronomers often examine star maps where stars are represented by points on a plane and each star has Cartesian coordinates. Let the level of a star be an amount of the stars t...
分类:
其他好文 时间:
2015-05-29 12:09:45
阅读次数:
124
在网站找一段,发现并没有达到自己的要求:
这段程序功能是 为某空字段自动编号(系统运用时,新加的编号字段,前期有数据,需要重新编号)
declare @id int
declare @maxid int
set @id=1
select @maxid=count(*) from t_Send_Revisit Where fSO is null
begin
while @id
be...
分类:
数据库 时间:
2015-05-29 12:05:26
阅读次数:
169
select *from db_user where user_type in(5,8);
select *from db_user where user_type between(5,8);
select *from db_user where user_name like '%s%';其中"%"可以匹配一个或多个字符
select *from db_user where user_name l...
分类:
数据库 时间:
2015-05-29 10:10:46
阅读次数:
151
这两天和广分的兄弟看了一个问题,比较有意思,过程也比较曲折。。。问题现象:1. 11g的库,话说有一个应用程序新上线,应用中使用了绑定变量的方式执行一条简单的SQL,例如select a from b where c = :x,c列是该表复合主键的前导列,表定义是varchar2类型,从spotlight监控看这条SQL的执行计划是全表扫描,一次执行要1个小时,这张表是运行很久的引用分区表,数据量...
分类:
其他好文 时间:
2015-05-29 06:14:52
阅读次数:
281
sql 分页alter proc P_Order @n int ,@m int --n条 m 页 As select top (@n) * from dbo.[Order Details] where OrderID not in ( select top ((@m ...
分类:
数据库 时间:
2015-05-28 22:45:27
阅读次数:
200
1 select count(*) from sysobjects a 2 join syscolumns b 3 on a.id=b.id4 where a.name='表名'5 go
分类:
数据库 时间:
2015-05-28 19:53:32
阅读次数:
185
Oracle表连接SQL/Oracle使用表连接从多个表中查询数据语法格式:select 字段列表from table1,table2where table1.column1=table2.column2;说明:在where子句中指定连接条件当被连接的多个表中存在同名字段时,必须在该字段前加上"表名...
分类:
数据库 时间:
2015-05-28 19:46:52
阅读次数:
177