syntex of insert

Answers were Sorted based on User's Feedback



syntex of insert..

Answer / mahathi

insert into tablename (col1,col2,........) values
(val1,val2,........)

Is This Answer Correct ?    9 Yes 1 No

syntex of insert..

Answer / dk

Insert into tablename (c1,c1,c3,...) values(v1,v2,v3,...)

and we can also use
Insert into tablename values(v1,v2,v3,...)
but in this we must have to know numbers of columns and we
have to insert values for all not null columns

Is This Answer Correct ?    2 Yes 1 No

syntex of insert..

Answer / d

insert into (table name) values(fieldname datatype);


for ex:

insert into emp values(eno number(3),ename varchar2(20));

Is This Answer Correct ?    0 Yes 0 No

syntex of insert..

Answer / jasmeet kaur

insert into table_name("column_name1","column_name2")
value("value1","value2")

Is This Answer Correct ?    0 Yes 0 No

syntex of insert..

Answer / gajanan.waghode

INSERT INTO table[(cloumn [,cloumn...])]
VALUES (value[,value...]);

with this syntax only one row is inserted at a time.

Is This Answer Correct ?    0 Yes 0 No

syntex of insert..

Answer / s

insert table <tablename>(col1,col2,.)values(..)

Is This Answer Correct ?    0 Yes 2 No

syntex of insert..

Answer / vanitha

insert into table tablename((field name datatype()))

Ex:
{
insert into table emp((eno int, ename varchar(10),eid int))
}

Is This Answer Correct ?    1 Yes 8 No

Post New Answer

More SQL Server Interview Questions

How do you use a subquery to find records that exist in one table and do not exist in another?

0 Answers  


What is an inner join?

0 Answers  


What are the limitation of the Online Index Rebuild Operation?

1 Answers  


What is the difference between Procedure and Function

4 Answers   Accenture, Nagarro, TCS,


How to enable tcp/ip protocol on a sql server?

0 Answers  






Can we rewrite subqueries into simple select statements or with joins? Example?

2 Answers   ASD Lab,


What is the difference between a primary key and a unique key? Are they the same?

0 Answers  


Issues related in upgrading SQL Server 2000 to 2005 / 2008

0 Answers  


Why do you need a sql server?

0 Answers  


Do you know what is rank function?

0 Answers  


What is sql injection? How to protect against sql injection attack?

0 Answers  


what are default? Is there a column to which a default cant be bound?

1 Answers  


Categories