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

What is the syntax for encrypting a column in SQL Server?

0 Answers   MindCracker,


What is onf in normalization form?

0 Answers  


How to create a new schema in a database?

0 Answers  


What are the differences between local and global temporary tables?

0 Answers  


What are key, name and value columns of an attribute? : sql server analysis services, ssas

0 Answers  






List the different types of collation sensitivities in sql server?

0 Answers  


What is oltp (online transaction processing)?

0 Answers  


what is bit datatype? : Sql server database administration

0 Answers  


Explain about extended stored procedure?

0 Answers  


Tell me the use of keyword with encryption. Create a store procedure with encryption?

0 Answers  


9. Write a query to list a new column with the difference in temp of the cities Delhi and Mumbai, Mumbai and Jammu and soon. Consider the following table : City_id City Temp. 1 delhi 40 2 Mumbai 35 3 Jammu 32 4 Pune 18

2 Answers  


How can I change procedure name in sql server?

0 Answers  


Categories