Collections:
Deleting Data from a View in SQL Server
Can You Delete Data from a View in SQL Server?
✍: FYIcenter.com
Can you delete data in a view? The answer is no.
But if the question is "Can you delete data from the underlying table through view?" The answer is then yes. SQL Server will allow you to delete data from the underlying table through a view. The tutorial exercise below is a good example:
DELETE FROM fyi_links_top WHERE id = 100001; GO SELECT * FROM fyi_links_top; GO 36470 999966 dgqnvmy pyjqd toqcoupuxortasdtzvcae jonfb 12292 999953 qebmw v qqmywe q kza wskxqns jnb 6192 999943 p o qisvrakk hk od SELECT TOP 1 * FROM fyi_links ORDER BY counts DESC; GO id url ... ------ ------------------------------------------- ... 36470 dgqnvmy pyjqd toqcoupuxortasdtzvcae jonfb ... 999966 1977-09-08 04:28:01.523
⇒ Assigning New Column Names in a View in SQL Server
⇐ Updating Data in a View in SQL Server
2016-11-03, 2891🔥, 0💬
Popular Posts:
Where to find answers to frequently asked questions on Conditional Statements and Loops in SQL Serve...
Is SQL Server Transact-SQL case sensitive? No. Transact-SQL is not case sensitive. Like the standard...
What is SQL Server Transact-SQL (T-SQL)? SQL Server Transact-SQL, also called T-SQL, is an extension...
How REAL and FLOAT Literal Values Are Rounded in SQL Server Transact-SQL? By definition, FLOAT(n) sh...
What Are the Basic Features of a Trigger in SQL Server? Since a SQL Server trigger is a really an ev...