"select Tel,sno,sex from TelTable left join s on TelTable.CustomerName=s.sn where CustomerName='" + this.textBox1.Text +"'"
这个测试成功了
但我的写的数据库查询代码怎么就不行呢 到底是哪错了
Command.CommandText="select Tel,sno,sex from TelTable,s where(TelTable.CustomerName=s.sno and sn='"+this.textBox1.Text+"')";我的代码哪错了
Console 类请参见
Console 成员 | System 命名空间 | Console 成员(Visual J# 语法) | C++ 托管扩展编程
要求
命名空间: System
平台: Windows 98, Windows NT 4.0, Windows ME, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 系列, .NET Framework 精简版 - Windows CE .NET