Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

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

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 insert into from a list of data
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

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..


Very Important crosS Applying yaK Herder

52326 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

SQL Server MVP

Go to Top of Page
  Previous Topic Topic Next 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.04 seconds. Powered By: Snitz Forums 2000