07 2013 档案
摘要:What’s New in C# 3.0 Language Integrated Query(LINQ) - LINQ enables queries to be written in C# program to query both local collections (such as lists or XML documents) or remote data sources (such as a database) Implicitly typed local variables - let you omit the variable type in a declaration stat
阅读全文
摘要:SQL行转列是比较经典的问题:比如有如下数据表,有如下某一款号(表1): 颜色 尺码 库存 红色 S 10 红色 M 80 白色 L 50 白色 S 60要将上面的表转化为如下格式(表2):颜色 S M L红色 10 80 0白色 60 0 50动态sql:create table #tbl_0( color nvarchar(12), nsize nchar(1), store int)insert into #tbl_0select 'red', 'S', '10' union allselect 'red', 'M&
阅读全文
摘要:错误:/bin/bash^M: bad interpreter: 没有那个文件或目录解决方案:运行脚本时出现了这样一个错误,打开之后并没有找到所谓的^M,查了之后才知道原来是文件格式的问题,也就是linux和windows之间的不完全兼容。。。具体细节不管,如果验证:vim test.sh:set ff?如果出现fileforma=dos那么就基本可以确定是这个问题了。:set fileformat=unix:wq!
阅读全文
摘要:1. 登录mysql mysql -uroot -p2. 执行脚本 mysql>use dbname; mysql>source /home/db/xx.sql
阅读全文