I have one table and column is c1 pk, c2 not null,c3 not
null and 200 row in it and i add c4 column and value, how
can is possible
Answers were Sorted based on User's Feedback
Answer / manoj
1.
alter table <table_name>
add column<col_name> <data_type>[not null];
2.
for inserting values
Depends: if u have data in another table than u can insert
by making small packege (using cursor)
OR :u can also sequence to insert
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / premraj
alter table table_name add c4 varchar2(30) default null
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / asraf
ALTER TABLE DUMMY1 ADD (C4 VARCHAR2(100) DEFAULT 0)
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / ravi singh
You can alter the table but u can not make the column as
null, and your insert statement will depends upon the
condition that u specified.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / gayathri
Alter table tablename ADD(columnname (data_type) notnull)
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / ramprasad.s
hi
Alter Table <Table Name> ADD( <Column name> <data type>)
you can insert values by using <update> with reference
to the existing values of the other columns.
bye
sun_ramprasad@yahoo.com
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / jyothi
alter the table -> alter table <table name> <datatype>
after then u can insert values in that clounm bu using
UPDATE ...
update set column name= value where condition
condition ....where u want to update the value means which
row...
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / shaik
u can alter the table. after that u can add the data
depending upon the criteria condition.
| Is This Answer Correct ? | 0 Yes | 1 No |
SQL Tuning, Oracle Server 10g: Why is the following hint invalid? SELECT /*+ first_rows parallel(table_name,paral_number)*/
How does sql profiler work?
what is the difernece between named and anonymous pl/sql blocks??
Can we insert data into view?
What does rownum mean in sql?
How does join work in sql?
Explain UNION,MINUS,UNION ALL, INTERSECT?
What is the use of & in pl sql?
how to achieve this problem?i am having table with two colums like empno,gender. in gender column, i am having records male,female like that .my final output will be male female 5 6
Name the operator which is used in the query for pattern matching?
What is sql keyword?
If you have to declare procedure1,procedure2 in package specification and if you have to declare procedure1,procedure2 and procedure3 in package body? is it compilation or not and execute or not? what type of error is given please
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)