Top "Ddl" questions

Data Definition Language is a subset of SQL to manipulate structural elements of a database, not the content of tables.

What is a good Visio Enterprise Architect replacement?

I've been using Visio 2002/2003 Enterprise Architect to do my database schema design visually and then forward-generate the DDL to create …

sql database visio ddl diagramming
CREATE UNIQUE INDEX IF NOT EXISTS in postgreSQL

Plese I would like to do in PostgreSQL something like CREATE UNIQUE INDEX IF NOT EXISTS Any idea?

sql postgresql ddl
How to alter "REFERENCES" in PostgreSQL?

How can I alter the reference to a table in PostgreSQL when the table name has been changed? Say I …

postgresql foreign-keys ddl alter-table
Invalid column name on sql server update after column create

Does anyone see what's wrong with this code for SQL Server? IF NOT EXISTS(SELECT * FROM sys.columns WHERE Name = …

sql sql-server tsql ddl
Is it possible to run multiple DDL statements inside a transaction (within SQL Server)?

I'm wondering if it is possible to run multiple DDL statements inside a transaction. I'm specially interested on SQL Server, …

sql sql-server transactions ddl jtds
Add unique index. SQLite3

I need to add a unique field index to an existing table. I made this row: ALTER TABLE auth_user …

sql sqlite ddl unique-index
Create Teradata volatile table and select from table using isql

I am trying to submit a two-statement SQL file as a batch job to the isql utility on a Linux …

teradata isql ddl
How do you create a wide table in SQL Server 2008? and what are its limitations on use?

I was reading the Maximum Capacity Specifications for SQL Server and I came across the designation of a wide table. …

sql tsql sql-server-2008 ddl
ORA 01400 and ORA 02296 : Cannot insert null or modify added column properties to NOT NULL

"Modify your query to add a column that subtracts the old salary from the new salary. Label the column Increase. …

oracle ddl notnull
Safely rename tables using serial primary key columns

I know that PostgreSQL tables that use a SERIAL primary key end up with an implicit index, sequence and constraint …

sql postgresql database-design ddl