在应用程序的GUI中隐藏表格列 [英] Suppressing a table column in the GUI of an application

查看:89
本文介绍了在应用程序的GUI中隐藏表格列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用数据库中不应在C#Windows窗体应用程序中出现的字段?

How to use a field in database, that should not be present in C# windows form application?

推荐答案

数据库列出现在应用程序的GUI中,然后要么不显示它,要么制定SQL select语句,以便不要选择不想出现的列.

If you don''t want the content of a database column to appear in the GUI of your application then you either just don''t display it or you formulate your SQL select statement so the column you don''t want to appear is not selected.

SELECT column1, column2, column4, column6
FROM myTable
WHERE ...



假设您有一个名为myTable的表,其中的列名为column1到column6.
在上面的select语句中,您将省略column3和column5.

那应该有帮助!


干杯,


曼弗雷德(Manfred)



Suppose you had a table myTable with columns named column1 through column6.
With the select statement above you''d omit column3 and column5.

That should help!


Cheers,


Manfred


这篇关于在应用程序的GUI中隐藏表格列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆