extract (year from date1)
extract (month from date1)
February 20, 2017
February 19, 2017
Teradata: Backup table with data
create table table1_bkup as
table1 with data
table1 with data
Teradata: List columns of a table
select
*
from dbc.columns
where tablename ='table1'
and databasename = 'database1'
*
from dbc.columns
where tablename ='table1'
and databasename = 'database1'
Teradata: List tables in database
select
*
from dbc.tables
where databasename='database'
and tablekind = 'T'
*
from dbc.tables
where databasename='database'
and tablekind = 'T'
February 18, 2017
Teradata: Add column with default value
alter table table1 add col1 int default 0
February 15, 2017
February 13, 2017
February 10, 2017
Teradata SQL: Drop column
alter table table1 drop col1
Teradata SQL: Update column name
alter table table1 rename col1 to col1_updated
Subscribe to:
Posts (Atom)