30 SQL Developer Tips in 30 Days, Day 19: Quick and Clean Table Copies

thatjeffsmith SQL Developer 1 Comment

Quick and clean, what’s that? Consider the following: CREATE TABLE new_table AS SELECT * FROM old_table WHERE 1=2; I call that ‘quick and dirty,’ and I imagine you have used this technique many, many times. But, I wish it would have grabbed column comments, indexes, maybe even the partitions. Partitioning a table after the fact is pretty much a no-go. …