![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
编程实践
cugfjp
这个作者很懒,什么都没留下…
展开
-
excel导入错误:外部表不是预期格式
错误过程:导入excel,open()函数报错;错误原因1: excel版本问题,低版本不兼容高版本。解决方案:修改连接字符串,注意连接字符串格式是否有误。 string strConn = "Provider=Microsoft.Ace.OleDb.12.0;" + "data source=" + Server.MapPath("ExcelFiles/Mydata2007.原创 2013-04-25 10:01:11 · 2692 阅读 · 1 评论 -
使用 not exists, not in 须小心
not exists 和 not in 对空值返回结果不同.product_type_id 为空时,not exists 有返回,而not in没有返回值。NOT EXISTS:SELECT product_type_id, nameFROM product_types outerWHERE NOT EXISTS (SELECT 1 FROM products i原创 2013-07-20 12:35:42 · 442 阅读 · 0 评论