Changeset 8589 for trunk/MagicSoft/Mars/msql
- Timestamp:
- 06/20/07 17:07:36 (17 years ago)
- Location:
- trunk/MagicSoft/Mars/msql
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/msql/MSQLMagic.cc
r8061 r8589 268 268 // -------------------------------------------------------------------------- 269 269 // 270 // An abbreviation for checking the existance with ExistStr and 271 // calling insert or update respectively. 272 // 273 Int_t MSQLMagic::InsertUpdate(const char *table, const char *col, const char *val, const char *vars) 274 { 275 return ExistStr(col, table, val) ? 276 Update(table, vars, Form("%s=%s", col, val)) : 277 Insert(table, vars); 278 } 279 280 // -------------------------------------------------------------------------- 281 // 270 282 // An abbreviation for a Dalete-Query. 271 283 // -
trunk/MagicSoft/Mars/msql/MSQLMagic.h
r8061 r8589 49 49 Int_t Update(const char *table, const char *vars, const char *where); 50 50 Int_t Delete(const char *table, const char *where); 51 Int_t InsertUpdate(const char *table, const char *col, const char *val, const char *vars); 51 52 52 53 void Delete(const Option_t *o) { TObject::Delete(o); }
Note:
See TracChangeset
for help on using the changeset viewer.