Yahoo Poland Wyszukiwanie w Internecie

Search results

  1. 18 sie 2013 · There are different ways to get the schema. Using ADO.NET, you can use the schema methods. Use the DbConnection 's GetSchema method or the DataReader 's GetSchemaTable method. Provided that you have a reader for the for the query, you can do something like this: using(DbCommand cmd = ...)

  2. 29 lip 2010 · Sql server. DECLARE @tableName nvarchar(100) SET @tableName = N'members' -- change with table name SELECT [column].*, COLUMNPROPERTY(object_id([column].[TABLE_NAME]), [column].[COLUMN_NAME], 'IsIdentity') AS [identity] FROM INFORMATION_SCHEMA.COLUMNS [column] WHERE [column].[Table_Name] = @tableName

  3. 28 cze 2023 · With the database set up and populated, you can now list tables in SQL to view them. The SQL command used depends on your chosen DBMS. Here are some common examples: For MySQL or PostgreSQL, use: SELECT table_name FROM information_schema.tables WHERE table_schema = 'your_database_name'; For SQL Server, use: SELECT name FROM sys.tables;

  4. 25 sty 2024 · The DESCRIBE statement is a simple and quick way to view the basic structure of a table, providing a set of essential details for each column such as field type, nullability, default values, and primary or unique keys. Access your MySQL database using MySQL client tool or terminal.

  5. 22 lip 2024 · You could alternatively query the system catalog views directly to query object metadata information about tables, schema, and columns. For example: SELECT s.name as schema_name, t.name as table_name, c.* FROM sys.columns AS c INNER JOIN sys.tables AS t ON t.object_id = c.object_id INNER JOIN sys.schemas AS s ON s.schema_id = t.schema_id WHERE ...

  6. 9 paź 2019 · Introduction to Schema. A SQL database contains multiple objects such as tables, views, stored procedures, functions, indexes, triggers. We define SQL Schema as a logical collection of database objects. A user owns that owns the schema is known as schema owner.

  7. Tutorial and example showing how to view the schemas in a PostgreSQL, MySQL, or SQL Server database.

  1. Ludzie szukają również