Notas
SQL- Edit
Conteúdo das notas (1)
Página 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';
Informações
- Descrição
- GCSE Computer Science (Databases) Notas sobre SQL- Edit, criado por Caitlin Bergan-Gander em 22-02-2016.
- Criado por
- Caitlin Bergan-Gander
- Visualizações
- 0
- Avaliação