If Exists Update else Insert Matlab/SQL

8 ビュー (過去 30 日間)
A David
A David 2012 年 5 月 13 日
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 件)

カテゴリ

Help Center および File ExchangeStructures についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by