I am in need of a help to build a query that references the primary key of my cadastro_cliente
table. I already did with the date, but with the cadastro_cliente
-> meter
is not working.
The query I tried to use is:
ALTER TABLE medidor
ADD CONSTRAINT Fk_cadastro_cliente
Foreign KEY (Cad_geral_cli_codigo)
References Cadastro_cliente (Cad_geral_cli_codigo);