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
 insert into from a list of data
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

singhto
Starting Member

Laos
1 Posts

Posted - 11/15/2012 :  21:07:34  Show Profile  Reply with Quote
Hi all, Could you tell me please how to insert a list of data from a variable to database mysql. i have data like this
$minute= 10 20 40 50 ..
and table hour has column as 1h 2h 3h 4h ..
so how i insert $minute to the hour by match with there column

thanks all..



singh

visakh16
Very Important crosS Applying yaK Herder

India
52325 Posts

Posted - 11/15/2012 :  22:07:32  Show Profile  Reply with Quote
are the values stored in same variable? if yes you should be using string parsing function like below to separate values out and then use it for matching

http://visakhm.blogspot.in/2010/02/parsing-delimited-string.html

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

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.05 seconds. Powered By: Snitz Forums 2000