Undefined function 'fastinsert' for input arguments

Fermé
Boulanouar.Khadidja Messages postés 1 Date d'inscription samedi 27 janvier 2018 Statut Membre Dernière intervention 27 janvier 2018 - 27 janv. 2018 à 15:11
Bonjour,

svp j'ai fait un programme pour exporter les données matlab vers postgresql avec le jdbc mais il m'affiche l'erreur suivant: Undefined function 'fastinsert' for input arguments of type'org.postgresql.jdbc.PgConnection'.



pouvez m'aider a résoudre ce problème est ce qu'il faut ajouter quelque chose a matlab une solution svp Voici le code que j'ai fait:

% Add jar file to classpath (ensure it is present in your current dir)
javaaddpath 'C:\postgresql-42.1.4.jre7.jar'

% Username and password you chose when installing postgres
props=java.util.Properties;
props.setProperty('user', 'postgres');
props.setProperty('password', 'Khadidja');

% Create the database connection (port 5432 is the default postgres chooses
% on installation)
driver=org.postgresql.Driver;
url = 'jdbc:postgresql://localhost:5432/employer';
conn=driver.connect(url, props);
tableName = 'flight'
fields = {'tas'}
numericField=[5;3;2]
allData = [num2cell(numericField)]
fastinsert(conn,tableName,fields,allData)

Merci d'avance