Top "Sql-update" questions

An SQL UPDATE statement is used to change existing rows in a table.

Oracle: Updating a table column using ROWNUM in conjunction with ORDER BY clause

I want to populate a table column with a running integer number, so I'm thinking of using ROWNUM. However, I …

sql oracle sql-update rownum
MySql - Way to update portion of a string?

I'm looking for a way to update just a portion of a string via MySQL query. For example, if I …

mysql sql string sql-update
MySQL ON UPDATE CURRENT_TIMESTAMP not updating

I've got a table that looks like this: CREATE TABLE IF NOT EXISTS `Hosts` ( `id` int(128) NOT NULL AUTO_INCREMENT, `…

mysql sql timestamp sql-update
MySQL update table based on another tables value

I have a two tables, Here is my first table, ID SUBST_ID CREATED_ID 1 031938 TEST123 2 930111 COOL123 3 000391 THIS109 4 039301 BRO1011 5 123456 COOL938 ... ... ... …

mysql join sql-update
PHP UPDATE prepared statement

I'm trying to learn the proper way to use prepared statements to avoid SQL injections etc. When I execute the …

php mysqli sql-update prepared-statement
How to use update trigger to update another table?

I am new to triggers and want to create a trigger on an update of a column and update another …

sql sql-server-2008 triggers sql-update
How do I tell when a MySQL UPDATE was successful versus actually updated data?

How do I tell when a MySQL UPDATE was successful versus actually updated data? Example: TABLE id city_name 1 Union 2 …

php mysql codeigniter sql-update
MySQL update a joined table

I want to update a table in a statement that has several joins. While I know the order of joins …

mysql join sql-update
MYSQL UPDATE with IN and Subquery

Hi i have tables like this : table entry : id | total_comments _____________________ 1 | 0 2 | 0 3 | 0 4 | 0 table comments : id | eid | comment _____________________ 1 | 1 | comment sdfd 2 | 1 | testing testing 3 | 1 | …

mysql sql-update subquery sql-view
How to add a column to a table from another table in Mysql?

I have two tables table1 table2 Tabel1 contains 2 columns id Name Tabel2 contains 2 columns id Age A want to add …

mysql sql select sql-update alter