tailieunhanh - SQL VISUAL QUICKSTART GUIDE- P47

SQL VISUAL QUICKSTART GUIDE- P47:SQL (pronounced es-kyoo-el) is the standard programming language for creating, updating, and retrieving information that is stored in databases. With SQL, you can turn your ordinary questions (“Where do our customers live?”) into statements that your database system can understand (SELECT DISTINCT city, state FROM customers;) | Chapter 15 Retrieving Metadata Microsoft Access Access metadata are available graphically through the Design View of each database object and programmatically through the Visual Basic for Applications VBA or C language. Access also creates and maintains hidden system tables in each database. To show system tables In Access 2003 or earlier choose Tools Options View tab check System Objects. or In Access 2007 or later choose Microsoft Office button Access Options Current Database in the left pane scroll to Navigation click Navigation Options check Show System Objects. The system tables begin with MSys and are commingled with the database s other tables. You can open and query them as you would ordinary tables. The most interesting system table is MSysObjects which catalogs all the objects in the database. Listing lists all the tables in the current database. Note that system tables don t have to be visible to be used in queries. Microsoft SQL Server SQL Server metadata are available through the schema INFORMATION_SCHEMA and via system stored procedures Listing . Listing List the tables in the current Access database. To list queries instead change Type 1 to Type 5. Listing SELECT Name FROM MSysObjects WHERE Type 1 Listing Metadata statements and commands for Microsoft SQL Server. Listing -- List the databases. exec sp_helpdb -- List the schemas. SELECT schema_name FROM -- List the tables Method 1 . SELECT FROM WHERE table_type BASE TABLE AND table_schema schema_name -- List the tables Method 2 . exec sp_tables -- Describe a table Method 1 . SELECT FROM WHERE table_catalog db_name AND table_schema schema_name AND table_name table_name -- Describe a table Method 2 . exec sp_help table_name 440 SQL Tricks Listing Metadata statements and commands for Oracle. Listing -- List the schemas users . SELECT FROM all_users -- List the tables. SELECT table_name FROM .

TỪ KHÓA LIÊN QUAN
crossorigin="anonymous">
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.