Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一行代码,我想返回数据集中的所有行,其中列的名称类似于
var rows = data.Tables[0].Select("Name like '" + username+ "['");
所以基本上我想返回一个名为 Name 的列的所有行,其中的用户名紧随[其后
[
例如
John [Smith] John [Kelly]
上面的函数应该返回这两个,因为[它们的名字后面有一个
在“[”之后添加“%”
var rows = data.Tables[0].Select("Name like '" + username+ " [[]%'");