12 lines
387 B
MySQL
12 lines
387 B
MySQL
|
CREATE OR REPLACE DEFINER=`root`@`localhost`
|
||
|
SQL SECURITY DEFINER
|
||
|
VIEW `vn2008`.`proveedores_clientes`
|
||
|
AS SELECT `Proveedores`.`Id_Proveedor` AS `Id_Proveedor`,
|
||
|
`Proveedores`.`Proveedor` AS `Proveedor`,
|
||
|
`Clientes`.`id_cliente` AS `Id_Cliente`,
|
||
|
`Clientes`.`cliente` AS `Cliente`
|
||
|
FROM (
|
||
|
`vn2008`.`Proveedores`
|
||
|
JOIN `vn2008`.`Clientes` ON(`Proveedores`.`NIF` = `Clientes`.`if`)
|
||
|
)
|