Top "Ddl" questions

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

ORA-04063: view has errors

I have 3 users (schemas) in my database. User A holds table X I created a view Y for user B …

sql oracle ddl sql-view
Mysql Add a new value to a column of data type enum

Say I have a mysql table, and I have a column of type enum and that column has defined set …

mysql ddl
Get definition of function, sequence, type etc. in Postgresql with SQL query

I need the create scripts for PostgreSQL database objects. I have not access to pg_dump. So I have to …

sql postgresql ddl
Alter table after keyword in Oracle

ALTER TABLE testTable ADD column1 NUMBER(1) DEFAULT 0 NOT NULL AFTER column2; Why can't I use mySql syntax in Oracle too? …

oracle oracle11g ddl alter-table
MySQL terminology "constraints" vs "foreign keys" difference?

I'm looking at the MySQL docs here and trying to sort out the distinction between FOREIGN KEYs and CONSTRAINTs. I …

mysql foreign-keys constraints ddl
Renaming multiple columns in one statement with PostgreSQL

Is it possible to rename multiple columns in a single statement, something along the lines of: ALTER TABLE Users RENAME …

sql postgresql ddl alter-table table-rename
MySQL performance of adding a column to a large table

I have MySQL 5.5.37 with InnoDB installed locally with apt-get on Ubuntu 13.10. My machine is i7-3770 + 32Gb memory + SSD hard …

mysql performance database-performance ddl
How do you like your primary keys?

In a fairly animated discussion in my team I was made to think what most people like as primary keys. …

algorithm database-design relational-database primary-key ddl
Primary key for multiple column in PostgreSQL?

How to provide primary key for multiple column in a single table using PostgreSQL? Example: Create table "Test" ( "SlNo" int …

postgresql database-design primary-key ddl composite-primary-key
How to generate Entity-Relation diagram from SQL DDL?

For example DbVisualizer can be used to connect to a DB and create nice diagram out of existing tables and …

sql database-design ddl er-diagrams