Notizen
SQL- Edit
Inhalt der Notizen (1)
Seite 1
SQL – Edit
Using SQL to change data on a database
• We
need the keywords ‘UPDATE’, ‘SET’ and ‘WHERE’
UPDATE TableName
SET field1=value,
field2=value…
WHERE fieldX=value
Example
• Using
the PetsAndOwners database:
• We
can change the surname of the person called John Smith to Jones:
UPDATE
tblOwners
SET LName =
'Jones'
WHERE FName =
'John' AND LName = 'Smith';
Informationen
- Beschreibung
- GCSE Computer Science (Databases) Notiz am SQL- Edit, erstellt von Caitlin Bergan-Gander am 22/02/2016.
- Erstellt von
- Caitlin Bergan-Gander
- Aufrufe
- 0
- Bewertung