0
What would be the command in SQL Server to view the script for the creation of a given table?
With a result more or less like this:
+------------+---------------------------------------------------+
| table_name | create_statement |
+------------+---------------------------------------------------+
| customers | CREATE TABLE customers ( |
| | |
| | id INT NOT NULL, |
| | |
| | email STRING NULL, |
| | |
| | CONSTRAINT "primary" PRIMARY KEY (id ASC), |
| | |
| | UNIQUE INDEX customers_email_key (email ASC), |
| | |
| | FAMILY "primary" (id, email) |
| | |
| | ) |
+------------+---------------------------------------------------+
the simplest option is to go in the "Script" menu, but this result ai does not exist in any table, you will have to combine the results to generate it
– Ricardo Pontual
Did the answer solve your question? Do you think you can accept it? See [tour] if you don’t know how you do it. This would help a lot to indicate that the solution was useful to you. You can also vote on any question or answer you find useful on the entire site.
– Maniero