且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何使用SQL Server 2008从C#中的多个表中选择计数

更新时间:2022-11-27 10:34:08

假定您对此进行数据绑定,则将按引用它们的顺序显示列SELECT语句,您可以提供比表中包含的更好,更人性化的名称:
Assuming you are databinding this, the columns will be displayed in the order you reference them in the SELECT statement, and you can provide better, more human friendly names than your table contains:
SELECT [book title] AS Title, [book code] AS [Book Code], ISBN, Author, StockLevel AS [Stock nos.] FROM myTable

可能会为您提供所需的数据.

Would probably give you the data you require.