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.
我有:
这段代码
bindingsource1.Filter="Phone Number = 123";
不起作用,因为电话和号码之间有空格!
该怎么办?
使用方括号
bindingsource1.Filter="[Phone Number] = 123";
或者,最好不要在字段名中使用空格。