Copied from http://www.mssqltips.com/sqlservertip/1771/splitting-delimited-strings-using-xml-in-sql-server/DECLARE @t TABLE ( ID INT IDENTITY ,...
分类:
其他好文 时间:
2015-01-22 17:45:02
阅读次数:
179
drop procedure Emp_fycreate procedure Emp_fy(@rows int,@page int,@tabName varchar(20))asdeclare @str varchar(2000)set @str='select top '+STR(@rows)+' ...
分类:
数据库 时间:
2015-01-22 12:44:13
阅读次数:
199
题目链接:https://oj.leetcode.com/problems/spiral-matrix/
题目内容:
Given a matrix of m x n elements (m rows, n columns), return all elements of the matrix in spiral order.
For example,
Given the follo...
分类:
其他好文 时间:
2015-01-22 09:32:41
阅读次数:
186
顺时针打印矩阵
Given a matrix of m x n elements (m rows, n columns), return all elements of the matrix in spiral order.
For example,
Given the following matrix:
[
[ 1, 2, 3 ],
[ 4, 5, 6 ],
[ 7, 8, 9...
分类:
其他好文 时间:
2015-01-21 20:04:46
阅读次数:
165
在Qt 5中使用数据库连接时,弹出下面的错误:
QSqlDatabase: QMYSQL driver not loaded
QSqlDatabase: available drivers: QSQLITE QMYSQL QMYSQL3 QODBC QODBC3 QPSQL QPSQL7
从上面的错误可以看出,错误发生在MySQL数据库驱动并未加载。
对于这种错误一般有两种情况:
第一种...
分类:
数据库 时间:
2015-01-21 18:14:00
阅读次数:
755
1.
创建分区表
create table range_part_range(id number, deal_date date, contents varchar2(1000))
partition by range(deal_date)
(
partition p1 values less than (to_date('2015-01-21', 'yyyy-mm-dd'))...
分类:
其他好文 时间:
2015-01-21 13:30:05
阅读次数:
193
The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font for better legibility)
P A H N
A P L S I I ...
分类:
其他好文 时间:
2015-01-20 10:29:45
阅读次数:
133
题目:
Given a matrix of m x n elements (m rows, n columns), return all elements of the matrix in spiral order.
For example,
Given the following matrix:
[
[ 1, 2, 3 ],
[ 4, 5, 6 ],
[ 7, 8, 9 ]...
分类:
编程语言 时间:
2015-01-19 17:19:36
阅读次数:
219
mysql查询结果导出/输出/写入到文件方法一:直接执行命令:mysql> select count(1) fromtable into outfile'/tmp/test.xls';Query OK, 31 rows affected (0.00 sec)在目录/tmp/下会产生文件test.xl...
分类:
数据库 时间:
2015-01-19 14:13:51
阅读次数:
176
一、使用dbms_sql执行查询
利用dbms_sql执行select语句,其顺序为 open cursor-->parse-->define column-->execute-->fetch rows-->close cursor;
1、创建班组表结构,如下图所示:
proteamid:主键ID、proteamname:班组名称,jctype:机车类型,workflag:工作标...
分类:
数据库 时间:
2015-01-19 12:54:00
阅读次数:
251