如何检查SQL Server数据库C#winform中是否存在记录?

时间:2018-06-23 12:53:57

标签: c# sql-server winforms

我的Windows窗体应用程序与Book Store有关。我想在尚未创建“良好接收记录”的ComboBox中显示PO编号。

这是这两个表的结构。

PO表-

enter image description here

GRN表

enter image description here

如何更改以下代码?

lastIndex+=16;
adapterData.addAll(d.size()-1, allData.subList(lastIndex, lastIndex+16))

1 个答案:

答案 0 :(得分:3)

我会这样说:

更改

computername - 192.168.0.0
computer2 - 192.168.100.43

con.sqlquery("select PO_No from TBL_PO");