词条 | From (SQL) |
释义 |
The SQL From clause is the source of a rowset to be operated upon in a Data Manipulation Language (DML) statement. From clauses are very common, and will provide the rowset to be exposed through a Select statement, the source of values in an Update statement, and the target rows to be deleted in a Delete statement. [1]FROM is an SQL reserved word in the SQL standard. [2]The ''SQL-DML-Statement'' FROM ''table_name'' WHERE ''predicate'' The From clause can generally be anything that returns a rowset, a table, view, function, or system-provided information like the Information Schema, which is typically running proprietary commands and returning the information in a table form.[3] ExamplesThe following query returns only those rows from table mytable where the value in column mycol is greater than 100. RequirementThe From clause is technically required in relational algebra and in most scenarios to be useful. However many relational DBMS implementations may not require it for selecting a single value, or single row - known as DUAL table in Oracle database.[4] Other systems will require a From statement with a keyword, even to select system data.[5] References1. ^{{cite web |url=https://docs.microsoft.com/de-de/sql/t-sql/queries/from-transact-sql?view=sql-server-2017 |title=From clause in Transact SQL}} {{SQL}}{{DEFAULTSORT:From (Sql)}}2. ^{{cite web | url=https://www.drupal.org/docs/develop/coding-standards/list-of-sql-reserved-words | title=Reserved Words in SQL}} 3. ^{{cite web |url=https://docs.microsoft.com/en-us/sql/relational-databases/system-information-schema-views/system-information-schema-views-transact-sql?view=sql-server-2017 |title=System Information Schema Views (Transact-SQL) }} 4. ^{{cite web |url=https://docs.oracle.com/cd/B19306_01/server.102/b14200/queries009.htm |title=Selecting from the DUAL Table}} 5. ^{{cite web |url=http://infolab.stanford.edu/~ullman/fcdb/oracle/or-time.html |title=Oracle Dates and Times}} 2 : SQL keywords|Articles with example SQL code |
随便看 |
|
开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。