The syntax for using an alias in an update statement on SQL Server is as follows:
UPDATE Q
SET Q.TITLE = 'TEST'
FROM HOLD_TABLE Q
WHERE Q.ID = 101;
The alias should not be necessary here though.
More Related Contents:
- I dont know sql syntax for my table [closed]
- Unable to Subtract Dates SQL Server
- Insert an image in a column of a table that already has 5 columns
- what is the reason behind this error in case statement
- CROSS JOIN vs INNER JOIN in SQL
- How to cast the DateTime to Time
- How can I schedule a job to run a SQL query daily?
- Reset identity seed after deleting records in SQL Server
- How to avoid the “divide by zero” error in SQL?
- SET versus SELECT when assigning variables?
- Multiple INSERT statements vs. single INSERT with multiple VALUES
- Generate Dates between date ranges
- Real life example, when to use OUTER / CROSS APPLY in SQL
- How to print VARCHAR(MAX) using Print Statement?
- Default row order in SELECT query – SQL Server 2008 vs SQL 2012
- Common Table Expression, why semicolon?
- T-SQL split string based on delimiter
- SQL Server 2008: how do I grant privileges to a username?
- Splitting delimited values in a SQL column into multiple rows
- How do I find duplicates across multiple columns?
- How to do an inner join on row number in sql server
- Execute Dynamic Query with go in sql
- TransactSQL to run another TransactSQL script
- Stored procedure that exports data into csv files only exports to one file
- SQL Server: should I use information_schema tables over sys tables?
- Comma Separated values with SQL Query
- TSQL – How to use GO inside of a BEGIN .. END block?
- SQL take just the numeric values from a varchar
- How to execute a stored procedure inside a select query
- Using CASE Statement inside IN Clause