Documente Academic
Documente Profesional
Documente Cultură
DETECCIN DE
ERRORES
Unidad3
Propsito
Como parte de tu aprendizaje es importante que puedas identificar qu sentencias son DDL y cules DML, al respecto en esta
actividad hars un ejercicio para distinguirlas e identificar los errores que presentan las sentencias. Para ello, realiza lo siguiente:
Instrucciones
1.
2.
3.
4.
5.
6.
Sentencia
Sintaxis corregida
El error basicamente es el
doble signo ==
FROM
DELETE
empleado
WHERE
empleado = 'any'
SELECT
COLUMN
nombre_campo
,FROM
TABLE nombre_tabla
con
id
DML
DDL
''])
[''columna2,... ''])
(''valor1a'', [''valor1b,...'']),
(''value2a'', [''value2b,...'']); values;
palabra VALUE
(''valor1a'',
[''valor1b,...'']),
(''value2a'', [''value2b,...'']);
Se repite el signo = y
tambien
la
exprecion
update value
UPDATE
bd.my_tableSET
field1= ASD WHERE
field2= n
DELETE
FROM
bd,my_table
WHERE
field = N
CREATE
TABLE
pedidos(
id_pedido int(4) not null
bd
DML
DML
auto_increment,
id_cliente int(4) not null,
id_articulo int(4)not null,
fecha date,
cantidad int(4),
total int(4),
PRIMARY KEY
(id_pedido,id_cliente;id_articulo))
Referencias
https://www.youtube.com/watch?v=iOiyJgnN71c&list=PLU8oAlHdN5Bmx-LChV4K3MbHrpZKefNwn
http://www.1keydata.com/es/sql/
DDL