Thanks again for the reply.
The documentation is much clearer, thanks. However Im getting this error when I try to import:
DB error (1064): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ',,,,,,,,,,,,,,'0')' at line 1 SQL call sp_DBR_import_do('1',,,,,,,,,,,,,,,,'0');
This is my sp_DBR_import_do:
DROP PROCEDURE IF EXISTS sp_DBR_import_do
$$
CREATE PROCEDURE `sp_DBR_import_do`(
ndApotheek Varchar(10),
Datumrecept Datetime,
ndATKODE varchar(45),
ndAantal Varchar(45),
sdEenheid Varchar(45),
sdEtiketnaam Varchar(100),
sdLevnaam Varchar(100),
ndWTGKOD Varchar(4),
ndZorgvrl Int(11),
ndWTGOpslag Varchar(10),
Inkoopprijs Varchar(10),
BedragExcl Varchar(10),
BedragFactregIncl Varchar(10),
sdProdgroep Varchar(10),
ndReceptNr Int(11),
sdAGBVerzekeraar Varchar(150),
ndGPKODE Varchar(11))
BEGIN
INSERT INTO `myData`.`Table_Data`
(
`Afleverapotheek`,
`Afleverdatum`,
`Receptnummer`,
`Recipenummer`,
`Basisproduct`,
`Etiketnaam`,
`Hoeveelheid`,
`Eenheid`,
`Z-indexnummer`,
`Zorgverzekeraar`,
`ImportDate`)
VALUES(
ndApotheek,
Datumrecept,
ndReceptNr,
ndWTGKOD,
sdEtiketnaam,
sdEtiketnaam,
ndAantal,
sdEenheid,
ndATKODE,
sdAGBVerzekeraar,
CURDATE());
END
$$
I cant see where the error is coming from?
Thanks