How we create a tables in db2,what is the process/syntax to
create a table with example plz?
Answer Posted / ratheesh nellikal
Answer posted by Dba is correct.
But in real time schenario we should be more specific.
eg:
CREATE TABLE SCHEMA.TABLENAME
(column1 DATATYPE,
column2 DATATYPE,
column3 DATATYPE)
IN tablespace_name
INDEX IN index_tablespace;
so try to follow this syntax (u can have more options with
this command like u can even specify the tablespace name wr
do u want to store ur LONG object 'LONG IN
long_tablespace' )
Cheers,
Ratheesh Nellikal
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
How do I add a column to a table in db2?
What are the different types of base tables?
How to find the number of rows in db2 tables?
Why cursor is used in db2?
What is null indicator in db2?
Hi Everyone... Under the Logical files, when am working on multiple rec format logical file, I have joined two pf's using the multiple record format logical file concept, but when i run queried the LF only the first mentioned pf records are reflecting and I am not able to see any of the field records specified under the second pf. Kindly let me know whats the reason behind this. Below is the str of LF., R rec PFILE(LOGICAA) CUSTNO CUSTNAME BILL K CUSTNO R rec1 PFILE(LOGICAA1) CUSTNO ADD K CUSTNO .....
What are the contents of a dclmgen?
What is explain in db2?
Is schema the same as database?
What is the difference between nvl and coalesce?
What are the benefits of using the db2 database?
Mention the downsides of page level lock.
What is dpf in db2?
How to create backup table in db2?
What is an instance database?