If Exists Update else Insert Matlab/SQL

8 visualizaciones (últimos 30 días)
A David
A David el 13 de Mayo de 2012
Hi,
What is the correct syntax for updating an "existing" field in an SQL Table.
If Exist Update Else Insert
At the moment I am fetching the entire table from the Database and loop through all the rows and compare to the new data, which I would imagine will eventually slow down the application as database grows.
Thanks,
Aris
  1 comentario
Oleg Komarov
Oleg Komarov el 13 de Mayo de 2012
This is NOT a MATLAB related question. You have to check SQL syntax: http://www.w3schools.com/sql/sql_update.asp

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Structures en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by