sql update asp





SQL Update

















Home
SQL Basics:

SQL HOME
SQL Introduction
SQL Select
SQL Where
SQL And & Or
SQL Between
SQL Distinct
SQL Order By
SQL Try It
SQL Insert
SQL Update
SQL Delete
SQL Count

SQL Advanced:

SQL Functions
SQL Group By
SQL Aliases
SQL Join
SQL Create
SQL Alter

SQL Quiz Test

Resources:

SQL Books












SQL Update




Update Rows

The UPDATE statement updates or changes rows:


UPDATE table_name SET column_name = new_value
WHERE column_name = some_value




Person:


LastName
FirstName
Address
City


Nilsen
Fred
Kirkegt 56
Stavanger


Rasmussen
 
Storgt 67
 





Update one Column in a Row
We want to add a first name to the person with a last name of
"Rasmussen":

UPDATE Person SET FirstName = 'Nina'
WHERE LastName = 'Rasmussen'

Update several Columns in a Row
We want to change the address and add the name of the city:

UPDATE Person
SET Address = 'Stien 12', City = 'Stavanger'
WHERE LastName = 'Rasmussen'

Result


LastName
FirstName
Address
City


Nilsen
Fred
Kirkegt 56
Stavanger


Rasmussen
Nina
Stien 12
Stavanger







Jump to : Top Of Page or HOME.


We Help you for free. Please Help us!

Help us correct errors
Help us with spelling and grammar
Tell us what you think
Link to us from your pages



All information in this Web is for training only. We do not make any warranties of its correctness or
its fitness to be used. The risk of using it remains with the user.
Copyright © 1999-2001 by Refsnes Data. All Rights Reserved.










More Tutorials:


HTML  XHTML
XML  XSL
CSS  DTD
WAP  WML
JavaScript
DHTML  Flash
VBScript  ASP
SQL  AppML






News:

The Future ofProgramming

Web Security

Browser News

Web Standards






References:

HTML 4.01 Ref

XHTML 1.0 Ref

WML 1.1 Ref

CSS Reference

XSLT Elements

ASCII Reference

Entity Reference

HTML Colors

Color Values

Color Names

WAP Pages






Validation:


HTML  XHTML
CSS  DTD
XML  WML







About W3Scripts

Please link to us








Larger Text?








 XML Partners:


















Wyszukiwarka

Podobne podstrony:
sql functions asp
sql groupby asp
sql alter asp
sql orderby asp
sql alias asp
sql create asp
sql where asp
sql quiz asp
sql count asp
sql select asp
sql distinct asp
sql insert asp
sql join asp
sql update
sql intro asp
sql tryit asp
sql?lete asp
sql and or asp

więcej podobnych podstron