TheEmployeetable holds all employees including their managers. Every employee has an Id, and there is also a column for the manager Id.+----+-------+-...
分类:
其他好文 时间:
2015-03-10 15:14:17
阅读次数:
118
1. 当字段没有默认值或者约束的时候可以使用: alter table[table_name] drop column [column_name]来删除。 当有默认值的时候应该先删除默认值,然后再删除此列,不然会报错。具体方法如下 select b.name from sysob...
分类:
数据库 时间:
2015-03-10 11:58:09
阅读次数:
166
Given a positive integer, return its corresponding column title as appear in an Excel sheet.
class Solution {
public:
string convertToTitle(int n) {
string s;
while(n){
...
分类:
其他好文 时间:
2015-03-10 00:14:37
阅读次数:
188
Related to questionExcel Sheet Column TitleGiven a column title as appear in an Excel sheet, return its corresponding column number.For example: A ...
分类:
其他好文 时间:
2015-03-09 15:41:03
阅读次数:
108
数据生成: numpy.random.randn() #正态分布 axis=0,1,2... ;0:row,1:column,2:page numpy.random()#平均分布 numpy.random.randint()#平均分布 range numpy.arange 数据整合: numpy.vstack(ay1,ay2) numpy.hsta...
分类:
编程语言 时间:
2015-03-09 00:35:35
阅读次数:
268
1.题目Given a column title as appear in an Excel sheet, return its corresponding column number.For example: A -> 1
B -> 2
C -> 3
...
Z -> 26
AA -> 27
AB -> 28 2.解决方案class Solu...
分类:
其他好文 时间:
2015-03-08 18:52:20
阅读次数:
126
1.题目Given a positive integer, return its corresponding column title as appear in an Excel sheet.For example: 1 -> A
2 -> B
3 -> C
...
26 -> Z
27 -> AA
28 -> AB 2.解决方案1class...
分类:
其他好文 时间:
2015-03-08 18:52:14
阅读次数:
133
如果某些童鞋有制作数据字典到excel的需求,可以参考一下我提供的sql。SELECTtable_schema数据库名,table_name表名,column_name字段名,column_type字段类型,is_nullable是否可空,column_default默认值,
CASEWHENcolumn_key=‘PRI‘THEN‘主键‘
WHENcolumn_key=‘MUL‘THEN‘普通索引‘..
分类:
其他好文 时间:
2015-03-08 01:38:21
阅读次数:
218
修改数据库alter database KidsPang COLLATE Chinese_PRC_CI_AS修改表中字段ALTER TABLE [Member] ALTER COLUMN [ID] [nvarchar](10) COLLATE Chinese_PRC_CI_AS NOT NULLAL...
分类:
数据库 时间:
2015-03-07 13:51:29
阅读次数:
131
DescriptionGiven an N*N matrix A, whose elements are either 0 or 1. A[i, j] means the number in the i-th row and j-th column. Initially we have A[i, j...
分类:
编程语言 时间:
2015-03-07 13:40:34
阅读次数:
157