Changes between Version 21 and Version 22 of Docs/Prog/Manual/ApplicationLibraries/lib825db
- Timestamp:
- 10/23/25 09:04:57 (3 weeks ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Docs/Prog/Manual/ApplicationLibraries/lib825db
v21 v22 65 65 int ct; 66 66 string sql = "SELECT COUNT(*) FROM [Trucks];"; 67 db. execute(sql, ct);67 db.Execute(sql, ct); 68 68 }}} 69 69 … … 123 123 }}} 124 124 125 There may be cases where an app needs to format the SQL string differently for SQLite or MySQL. This can be accomplished by checking dynamic cast such as: 126 {{{#!c++ 127 string sql 128 if(dynamic_cast<CDBMySQL*>(appDB)) { 129 // Format SQL for MySQL 130 } else { 131 // Format SQL for SQLite 132 } 133 } 125 134 135
![(please configure the [header_logo] section in trac.ini)](/chrome/site/cardinal.gif)