Geeks Talk

Prepare for your Next Interview


Welcome to the Geeks Talk forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Inserting Values in to a table

This is a discussion on Inserting Values in to a table within the SQL Server forums, part of the Databases category; Hi Guys, I am new to this forum & new to database field aswell. May be this is a silly question from me but i am struck with this issue. ...

Go Back   Geeks Talk > Databases > SQL Server
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read

SQL Server SQL Server is a Database Management System(DBMS) by Microsoft

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-18-2009
Junior Member
 
Join Date: May 2009
Location: Sydney
Posts: 1
Thanks: 0
Thanked 1 Time in 1 Post
kish_db is on a distinguished road
Red face Inserting Values in to a table

Hi Guys,

I am new to this forum & new to database field aswell. May be this is a silly question from me but i am struck with this issue. I am trying to execute a insert statement and the query keep on executing looks like its not gonna end. Even if i select * from the table which i am trying to insert values it still says 'Executing Query'. Can anyone can help me with this.

Regards,

Kishor
Reply With Quote
The Following User Says Thank You to kish_db For This Useful Post:
Sponsored Links
  #2 (permalink)  
Old 05-19-2009
Moderator
 
Join Date: Jun 2007
Location: Bangalore,India
Posts: 1,853
Thanks: 9
Thanked 168 Times in 142 Posts
debasisdas has a spectacular aura aboutdebasisdas has a spectacular aura about
Re: Inserting Values in to a table

what is the query that you are executing ?
Reply With Quote
  #3 (permalink)  
Old 06-18-2009
Contributing Member
 
Join Date: Jun 2009
Location: United States
Posts: 71
Thanks: 0
Thanked 5 Times in 4 Posts
CSOOR is on a distinguished road
Re: Inserting Values in to a table

What exectly are you doing??
Reply With Quote
  #4 (permalink)  
Old 06-19-2009
Junior Member
 
Join Date: Jun 2009
Location: india
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
jeneen is on a distinguished road
Re: Inserting Values in to a table

see the general format of insert the values and the try................
Reply With Quote
  #5 (permalink)  
Old 07-20-2009
Junior Member
 
Join Date: Jun 2009
Location: Hyderabad
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
swathiponnapureddy is on a distinguished road
Re: Inserting Values into a table

create table st(roll number(3),name varchar2(20),course varchar2(20));

inserting values into the table st

insert into st values(1,'DAVE',null);
insert into st values(2,'PETER','oracle');

null - if u want to insert empty value into the column
don't put null in quotes,it will become value

to check whether values inserted into table

select * from st;
Reply With Quote
  #6 (permalink)  
Old 07-21-2009
Junior Member
 
Join Date: Jul 2009
Location: NASHIK,MAHARASHTRA
Posts: 1
Thanks: 0
Thanked 1 Time in 1 Post
Rakesh_Biradar is on a distinguished road
Re: Inserting Values in to a table

Check the syntax............
Reply With Quote
The Following User Says Thank You to Rakesh_Biradar For This Useful Post:
  #7 (permalink)  
Old 08-07-2009
Junior Member
 
Join Date: Aug 2009
Location: Delhi
Posts: 5
Thanks: 1
Thanked 0 Times in 0 Posts
vivekgeek is on a distinguished road
Re: Inserting Values in to a table

Syntax of inserting values into a table :

insert into table {table name} values(2,'John',10,'lahore');

After this the values get inserted into the various coulmns of the table in question.

For checking the results please use the Select * from {table} query.

Give me a shout if you have a doubt.

Thanks!
Reply With Quote
  #8 (permalink)  
Old 08-26-2009
Junior Member
 
Join Date: Aug 2009
Location: Pune
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Dnyanesh01 is on a distinguished road
hi

hi everyone , i m also new here
Reply With Quote
  #9 (permalink)  
Old 08-26-2009
Junior Member
 
Join Date: Aug 2009
Location: Pune
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Dnyanesh01 is on a distinguished road
Re: Inserting Values in to a table

i have a basic knowledge of SQL
Reply With Quote
  #10 (permalink)  
Old 08-26-2009
Junior Member
 
Join Date: Aug 2009
Location: Pune
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Dnyanesh01 is on a distinguished road
Re: Inserting Values in to a table

what is the difference between SQL & MYSQL
Reply With Quote
Reply

  Geeks Talk > Databases > SQL Server

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
Add a new column to a table and insert values Ajit Kumar Maharatha Oracle 11 12-12-2008 10:58 AM
Capturing values from a Table chennaprashanth QTP 1 09-19-2008 08:18 AM
How to get values from one table paoan1 Oracle 2 12-12-2007 05:49 AM
Link values to table mapino Data Warehousing 0 10-16-2007 06:46 AM
Inserting column in existing table svigneshwari Oracle 4 07-30-2007 10:31 AM


All times are GMT -4. The time now is 07:47 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved