随笔分类 -  数据库

C#数据访问类
摘要:public class operateDB { private static string conStr; public static OleDbConnection cnn; OleDbDataAdapter da; OleDbCommandBuilder cb; OleDbCommand cmd; //构造函数 #region initial... 阅读全文

posted @ 2008-04-01 18:02 weiwcn 阅读(615) 评论(0) 推荐(0)

select 1 from 浅析
摘要:今天看到项目代码里有这条语句,不懂select 1 from XXXXXXX里的1是何意,查了一番才知道: 1、select 1 from mytable;与select anycol(目的表集合中的任意一行) from mytable;与select * from mytable 作用上来说是没有差别的,都是查看是否有记录,一般是作条件用的。select 1 from 中的1是一常量,查到的所... 阅读全文

posted @ 2008-03-24 18:06 weiwcn 阅读(5264) 评论(4) 推荐(0)

导航