SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 How to insert comma with the string value
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

harriere
Starting Member

India
3 Posts

Posted - 06/11/2012 :  01:39:10  Show Profile  Reply with Quote
I am having data like these

"personal,social,networking"

and i need to insert above into a varchar field in sql..without quotes

can anyone help me pls...

V.VIJAY
http://harriernet.wordpress.com

khtan
In (Som, Ni, Yak)

Singapore
16746 Posts

Posted - 06/11/2012 :  02:36:43  Show Profile  Reply with Quote

INSERT INTO some_table ( some_column )
SELECT 'personal,social,networking'



KH
Time is always against us

Go to Top of Page

DonAtWork
Flowing Fount of Yak Knowledge

2111 Posts

Posted - 06/11/2012 :  06:34:31  Show Profile  Reply with Quote
if you are going to store data in a comma separated column, excel is what you want, not SQL SERVER.









How to ask: http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx

For ultra basic questions, follow these links.
http://www.sql-tutorial.net/
http://www.firstsql.com/tutor.htm
http://www.w3schools.com/sql/default.asp
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.06 seconds. Powered By: Snitz Forums 2000