
C#
一头扎进互联网
这个作者很懒,什么都没留下…
展开
-
用c#读取excel文件缺少第一行数据解决方法
@"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\MyExcel.xls;Extended Properties=""Excel 8.0;HDR=Yes;IMEX=1""" "HDR=Yes;" indicates that the first row contains columnnames, not data"IMEX=1;转载 2015-06-25 16:09:33 · 2252 阅读 · 0 评论 -
C# 里用到的scalar variable
需要先定义,再使用: string testCase = rdr[0].ToString().Replace(prefix1, "").Replace(prefix2, "").Trim(); string target = rdr[1].ToStrin原创 2015-06-25 16:13:54 · 1202 阅读 · 0 评论 -
使用NEWID()搭配UniqueIdentifier数据产生全球唯一标识码
数据库里的unique字段生成唯一码,用newid() 即可。string SQL_InsertPMTestcases = "INSERT INTO [NTC].[dbo].[PMTestCase]([TestCaseID],[Name],[ID],[Target], [Device]) values" +转载 2015-06-25 16:17:37 · 504 阅读 · 0 评论