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.
我的 Windows 窗体应用程序的表单上有一个网格视图。它从数据源中获取价值。数据源包含一个字段“IsNew”。这在我的数据网格视图的列中显示“真”或“假”。我想为 True 显示“是”,为 False 显示“否”。是否可以?请帮忙。
如果你有一个 SELECT 语句,也许你可以尝试一个 DECODE;对于 MS SQL,它应该是:
SELECT CASE WHEN FieldA = 'A' THEN 'myA' ELSE 'myB' FROM myTable。