Material del curso de SQL de la UNACAR 2020
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

12345678
  1. select *
  2. from categorias c
  3. join categoria_producto cp on c.id = cp.categoria_id
  4. join productos p on p.id = cp.producto_id
  5. select c.id, c.nombre, c.categoria_id ,c2.nombre from categorias c
  6. join categorias c2 on c2.id = c.categoria_id