Machine-translated by Google. Questions are authored in English.
Top

Discussion

We use the SQL construct COLUMNS(*) to determine the number and type of columns in a table.

  • A.True
  • B.False

Answer: B

Correct answer: False

There is no such SQL construct. The number and type of columns in a table are found by querying the system catalog or the information schema, or by using a product-specific command such as DESCRIBE or sp_columns. COUNT(*) does exist and counts rows, which is probably what the invented name is meant to echo.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.