08 2024 档案
摘要:////取消转义 //string str = @"a/b/c123"; //bool b=str.StartsWith("a"); //MessageBox.Show(b.ToString()); //str = str.TrimStart('a'); //str = str.TrimEnd('3
        阅读全文
                
                    posted @ 2024-08-31 21:24  
techNote
    
                
            
摘要:查看某数据库下数据表的个数及数据表的名字 SELECT COUNT(*) FROM INFORMATION_SCHEMA.TABLES; SELECT * FROM INFORMATION_SCHEMA.TABLES;SELECT COLUMN_NAME FROM INFORMATION_SCHEM
        阅读全文
                
                    posted @ 2024-08-31 21:18  
techNote
    
                
            
摘要:项目-引用-找到或用NuGet找到-确定 项目代码中通过using ...引用上面的命名空间 然后就可以使用该命名空间下的类及类下的字段/属性/方法等了 如system.configuration等
        阅读全文
                
                    posted @ 2024-08-31 19:20  
techNote
    
                
            
摘要:
        阅读全文
                
                    posted @ 2024-08-31 09:03  
techNote
    
                
            
摘要:public static bool ExportToExcelByNPOI(DataGridView dgv, string fileName) { bool b = false; try { IWorkbook workbook = new XSSFWorkbook(); ISheet shee
        阅读全文
                
                    posted @ 2024-08-30 21:15  
techNote
    
                
            
摘要:private void Form1_Load(object sender, EventArgs e) { statusStrip1.Items.Insert(1, new ToolStripSeparator());//1是索引,数控件位置从0开始 statusStrip1.Items.Inser
        阅读全文
                
                    posted @ 2024-08-30 16:48  
techNote
    
                
            
摘要:
        阅读全文
                
                    posted @ 2024-08-29 16:02  
techNote
    
                
            
摘要:select distinct(SF_CLFL) from sf_jlb where SF_CLFL is not null and sf_clfl<>'' and UNICODE(sf_clfl) not BETWEEN 19968 AND 40869;
        阅读全文
                
                    posted @ 2024-08-28 11:32  
techNote
    
                
            
摘要:use ChargeDB;--更新数据update dbo.SF_JLB set SF_YSZJE='150',SF_SSZJE='150' where SF_SSZJE='345' and SF_SFRQ>='2023/8/1' and SF_SFRQ<='2023/8/19 23:59:59';
        阅读全文
                
                    posted @ 2024-08-24 09:20  
techNote
    
                
            
摘要:三个步骤: 第一步:声明数据库连接对象: Sqlconnection connection=new Sqlconnection(ConnectionString); 第二步:声明数据库操作对象: 两种途径: 直接以字符串拼接的方式形成sql语句,比如: sqlstr="insert into use
        阅读全文
                
                    posted @ 2024-08-23 18:44  
techNote
    
                
            
 
                    
                     
                    
                 
                    
                
 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号