`
sjrhero
  • 浏览: 83763 次
  • 性别: Icon_minigender_1
  • 来自: 河南省
社区版块
存档分类
最新评论
文章列表
  declare @num int declare @datediff int select @datediff=510 set @num=411 while @num<@datediff begin insert into DateProperty (calamityid) values (@num) set @num=@num+1 end    

SQLite分页

  select * from table1 limit 2,5     表示跳过2行,取5行的返回结果。      而   select * from table1 limit 2 offset 5     则表示跳过5行,取2行的返回结果。offset表示从索引号为1的记录开始,第一行的索引号为0    
一个简单的分页代码,如下:   select * from ( select top (pagesize) * from ( select top (currentpage*pagesize) * from [dbo].[Area] order by id asc ) as myfirst order by id desc ) as mysecond order by id asc 如果数据量大的话,这个方法是很慢的。      
Excel2007 和 Excel2010 的连接字符串为: <connectionStrings > <add name="ConnectionStrings" connectionString="Provider=Microsoft.ACE.OLEDB.12.0;Data Source=|DataDirectory|\Excel.xlsx;Extended Properties='Excel 12.0;HDR=YES IMEX=1;'"/> </connectionStrings>   ...
很简单,代码如下: 添加:   function selectChange() { var sel=document.getElementById("select1"); Option option = new Option("Text","Value"); sel.add(option); }   删除所有:   document.getElementById("select1").options.length=0;   删除单个Option元素: ...
在浏览器地址栏前面加上自己喜欢的ICO图标的方法:   <link rel="shortcut icon" href="../image/favicon.ico"type="image/x-icon" />  不过谷歌浏览器不支持这个东西。在IE里面已经测试通过;效果如下:          
比如:<asp:Label runat="server" ID="_lbl_01">Value</asp:Label>   则可以用JavaScript这样写得到Value; function F17() { var div = document.getElementById("_lbl_01"); alert(div.textContent); }  
vs2010建立的项目怎么在vs2008下打开!搞了N久终于试了出来!之前也在网上查了好些资料写的都是该解决方案的版本,这种说法其实不完全对!(意思是不只是改着一个),下面把这个方法给大家分享一下: 1:该解决方案的版 ...
      与基于理解的分词算法和基于统计的分词算法相比,基于文本匹配的算法更加通用。基于文本匹配的算法又称之为“机械分词算法”,他是它是按照一定的策略将待分析的汉字串与一个“充分大的”机器词典中的词条 ...
//CreateFolder Operation private void button1_Click(object sender, EventArgs e) { string path = @"F:\JunRui"; if (!Directory.Exists(path)) { //创建文件夹,如果没有JunRui文件夹则同时也创建JunRui文件夹 Directory.Crea ...
byte[]转数组string: string str = "_JunRui"; byte[] byteArr = System.Text.Encoding.Default.GetBytes(str);   string转byte[]数组: string byteToStr = System.Text.Encoding.Default.GetString(byteArr);   此例主要运用的是Encoding类,与此相关的类还有UTF8Encoding,UTF7Encoding,UTF32Encoding,ASCIIEncoding,UnicodeEncodi ...
//获取相对路径   //例如:System.Windows.Forms.Application.StartupPath = "F:\Sample_01\Material\bin\Debug" //经过以下处理将返回"F:\Sample_01\Material\images\01.gif" string path=System.Windows.Forms.Application.StartupPath + @"../../"; System.IO.Directory.SetCurrentDirectory(path) ...
排名函数是SQL Server2005新加的功能。在SQL Server2005中有如下四个排名函数: 1. row_number 2. rank 3. dense_rank 4. ntile    下面分别介绍一下这四个排名函数的功能及用法。在介绍之前假设有一个t_table表,表结构与表中的数据如图1所示:      
首先去这个地址下载类库: http://www.microsoft.com/downloads/zh-cn/confirmation.aspx?FamilyID=44cac7f0-633b-477d-aed2-99aee642fc10&DisplayLang=zh-cn   这两个提供这是微软亚洲汉字开发中心开发的。2009年3月31日,微软发布了 Microsoft Visual Studio International Pack 1.0 SR1。Visual Studio International Pack 包含一组类库,该类库扩展了.NET Framework对全 ...
在Sql Server中去掉重复行的方法,网上查了很多,可是自己太笨了只有一个实验成功了。 我的项目要求: 现在有两个表A、B,A里面有重复的记录,B是一个空表,表结构与A是一样的,要求将A表里面重复行去掉,并Copy到B表中; 那么我的实现步骤如下:   insert into B select id,[statement],bookname,word,speech,features from A where id in( select max(id) from B group by [statement],bookName,word )  这样就将A表里面重复行 ...
Global site tag (gtag.js) - Google Analytics