Top "Sql-update" questions

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

I want to use CASE statement to update some records in sql server 2005

UPDATE dbo.TestStudents SET LASTNAME = ( CASE WHEN (LASTNAME = 'AAA') THEN 'BBB' WHEN (LASTNAME = 'CCC') THEN 'DDD' WHEN (LASTNAME = 'EEE') THEN …

sql sql-server tsql sql-update
How to update column with null value

I am using mysql and need to update a column with a null value. I have tried this many different …

mysql sql-update
how can I Update top 100 records in sql server

I want to update the top 100 records in SQL Server. I have a table T1 with fields F1 and F2. …

sql sql-server tsql sql-update
Multiple Updates in MySQL

I know that you can insert multiple rows at once, is there a way to update multiple rows at once (…

mysql sql sql-update
mysql update column with value from another table

I have two tables, both looking like id name value =================== 1 Joe 22 2 Derk 30 I need to copy the value of value …

mysql sql sql-update
Change One Cell's Data in mysql

How can I change the data in only one cell of a mysql table. I have problem with UPDATE because …

mysql sql-update
updating table rows in postgres using subquery

Using postgres 8.4, My goal is to update existing table: CREATE TABLE public.dummy ( address_id SERIAL, addr1 character(40), addr2 character(40), …

sql postgresql subquery sql-update
Number of rows affected by an UPDATE in PL/SQL

I have a PL/SQL function (running on Oracle 10g) in which I update some rows. Is there a way …

oracle plsql sql-update
Find out the history of SQL queries

An update SQL query was executed on the server, which caused many problems later. How can I get the list …

oracle sql-update database-administration
MySQL - UPDATE multiple rows with different values in one query

I am trying to understand how to UPDATE multiple rows with different values and I just don't get it. The …

mysql sql sql-update