teradatacommands updated

2
 select * from dbc.tables select * from dbc.tables sample 10 Help table <tablename>: For listing of all table columns, Show table <tablename>: For DDL statement. select * from sys_calendar.calendar where calendar_date = '1947-08-15'  to get the dates and other details abt the date. select current_time(For selectinng current-time) select current_date(for selecting current date) select count(*) from ARNG_PRFT_ITM_1008.ARNG_ PRFT_ITM_1008 SELECT COUNT(*)(decimal(18,0)) from ARNG_PRFT_ITM_1008.AR NG_PRFT_ITM_1008 release lock ARNG_PRFT_ITM_YYMM.ARNG_PRFT_ITM_YYMM; release lock ARNG_PRFT_ITM_YYMM.ARNG_PRFT_ITM_1108_RAROC;; drop table ARNG_PRFT_ITM_YYMM.ARNG _PRFT_ITM_YYMM; drop table ARNG_PRFT_ITM_YYMM.ARNG _PRFT_ITM_1108_RAROC; delete ARNG_PRFT_ITM_YYMM.ARNG_PRFT_YYYMM ALL; echo "script started at $(date)" echo "copying the following files"  

Upload: naveen-nalla

Post on 05-Oct-2015

5 views

Category:

Documents


0 download

DESCRIPTION

teradata

TRANSCRIPT

select * from dbc.tablesselect * from dbc.tables sample 10Help table : For listing of all table columns,Show table : For DDL statement.select * from sys_calendar.calendar where calendar_date = '1947-08-15' to get the dates and other details abt the date.select current_time(For selectinng current-time)select current_date(for selecting current date)select count(*) from ARNG_PRFT_ITM_1008.ARNG_PRFT_ITM_1008SELECT COUNT(*)(decimal(18,0)) from ARNG_PRFT_ITM_1008.ARNG_PRFT_ITM_1008release lock ARNG_PRFT_ITM_YYMM.ARNG_PRFT_ITM_YYMM;release lock ARNG_PRFT_ITM_YYMM.ARNG_PRFT_ITM_1108_RAROC;;drop table ARNG_PRFT_ITM_YYMM.ARNG_PRFT_ITM_YYMM;drop table ARNG_PRFT_ITM_YYMM.ARNG_PRFT_ITM_1108_RAROC;delete ARNG_PRFT_ITM_YYMM.ARNG_PRFT_YYYMM ALL;echo "script started at $(date)"echo "copying the following files"