If Exists Update else Insert Matlab/SQL

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

Oleg Komarov
Oleg Komarov 2012년 5월 13일
This is NOT a MATLAB related question. You have to check SQL syntax: http://www.w3schools.com/sql/sql_update.asp

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 Structures에 대해 자세히 알아보기

태그

질문:

2012년 5월 13일

Community Treasure Hunt

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

Start Hunting!

Translated by