|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
Can i pass a varible in mysql_query
in c coding . i am using this one code but it is not successful to compile String query,acctnbr,amount; accntnbr = [(whatever the variable is)]; amount = [(whatever the variable is)]; query = "insert into tablename (acctnbr,amount) values (%s,%s)",acctnbr,amount); mysql_query(&mysql,query); what would be the right method to pass a varible in mysql_query? thanks. |
![]() |
| Viewing: Dev Shed Forums > Databases > MySQL Help > Can i pass a variable in mysql_query in c program? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|