I have the PHP script below which uses PDO to prepare and call a MySQL stored procedure. The stored procedure returns 2 rowsets. The 1st contains 25 rows. The 2nd contains 1 row. I can\'t seem to get
I have a table column of data type DATE. I am inserting through Java PreparedStatement , how can I store timestamp also when inserting? Is it possible to store time stamp in DATE column?
I am using JDBC connection object obtained from hibernate to perform bath update, I am doing this because I need to use the MySql ON DUPLICATE feature. But, when trying to insert I am not able to inse
Would this scenario work: $query = \' UPDATE users SET balance = (balance + ?) WHERE user = ? \'; $sth = $dbh->prepare($query);
In a trigger I want to see what sql query triggered this trigger. I used current_query() function of postgresql (8.4).
I have created a simple plugin. It has a configuration site in the backend and some functions for the user site. I need to save some user choices into database. On the beginning I used $wpdb->insert()
I\'m using a prepared statement with this SQL code: SELECT `name` FROM `securities` WHERE `symbol`=? AND `type`=`C`
I\'m having a problem using setString in for loop. I have this line to insert into a table in my database
I have an application whose first page after login presents the user with a lot of data. The query against the database takes a long time - let\'s say 10 seconds. The database is in SQL Server 2008, t
I got some problem with binding some parameters in MYSQL statement in php. It is throwing an error when count($posts) > 1 on the marked line below. Anyone who know what I\'ve done wrong?