这个ACCESS表如何进行搜索? 看看sql 语句。。很简单的。。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 System.Data.OleDb.OleDbCommand command ; System.Data.OleDb.OleDbConnection cn; cn=new System.Data.OleDb.OleDbConnection("User ID=sa;Data Source=GW;Initial Catalog=bookinf;Use Procedure for Prepare=1;Provider=SQLOLEDB"); // cn.Close(); cn.Open(); command=new System.Data.OleDb.OleDbCommand("select count(*) from power where man_name=? and pass=? ",cn) ; command.Parameters.Add("@man_id",System.Data.OleDb.OleDbType.VarChar,10).Value=textBox1.Text ; command.Parameters.Add("@pass",System.Data.OleDb.OleDbType.VarChar,10).Value =textBox2.Text ; MessageBox.Show (command.ExecuteScalar().ToString());这是个 sql2000的列子,你改改就行。。 这些我都会,楼上不明白我的意思我是想搜索IP1,IP2中都没有,但是在同一行这两个IP之间的那些IP C#自定义菜单样式 【求助】关于winform的GroupBox控件问题? Oracle数据库表结构导入到SQL SERVER WindowsMediaPlayer插件如何实现缓冲 跨窗口委托如何写?大虾们请教! 怎么把一个INT分成两半来用?就是前面的bits存一个数,后面的bits存一个数? 动态控制datagridview外观与显示列 C#调用Vc++.NET编写的类库函数 WPF 重写TextBox,手触摸时会调用虚拟键盘 正版vs.net2003低价出售 在窗体上播放的FALSH如何与主程序进行交互? 如何使用.net1.2的类库啊.
System.Data.OleDb.OleDbConnection cn;
cn=new System.Data.OleDb.OleDbConnection("User ID=sa;Data Source=GW;Initial Catalog=bookinf;Use Procedure for Prepare=1;Provider=SQLOLEDB");
// cn.Close();
cn.Open(); command=new System.Data.OleDb.OleDbCommand("select count(*) from power where man_name=? and pass=? ",cn) ;
command.Parameters.Add("@man_id",System.Data.OleDb.OleDbType.VarChar,10).Value=textBox1.Text ;
command.Parameters.Add("@pass",System.Data.OleDb.OleDbType.VarChar,10).Value =textBox2.Text ;
MessageBox.Show (command.ExecuteScalar().ToString());这是个 sql2000的列子,你改改就行。。
这些我都会,楼上不明白我的意思
我是想搜索IP1,IP2中都没有,但是在同一行这两个IP之间的那些IP