Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Newbie corner » Database with several windows
Re: Database with several windows [message #32959 is a reply to message #32239] Sun, 26 June 2011 08:49 Go to previous messageGo to previous message
BioBytes is currently offline  BioBytes
Messages: 310
Registered: October 2008
Location: France
Senior Member
Hi,

Try to use SqlId identifiers as global variables in your applications. It makes things easier to manage fields from different tables in the same application. For example, I use :

TABLE (NATIONS)
INT(IDNATION)PRIMARY_KEY AUTO_INCREMENT
STRING_(NATION,200)
STRING_(STATUS,50)
BLOB(FLAG)
END_TABLE

TABLE (UNITS)
INT(ID)PRIMARY_KEY AUTO_INCREMENT
INT (IDUNIT)
STRING_(UNITNAME,200)
BLOB(UNITPICTURE)
END_TABLE

TABLE (MAPS)
INT(IDMAP)PRIMARY_KEY AUTO_INCREMENT
INT(MAPNUMBER)
INT(MODULEOWNER)
STRING_(DESCRIPTION,200)
BLOB(MAPPICTURE)
END_TABLE

TABLE (MODULES)
INT(IDMODULE)PRIMARY_KEY AUTO_INCREMENT
STRING_(MODULENAME,200)
STRING_(EDITOR,200)
END_TABLE


and the SqlId:

SqlId TBLMAPS("MAPS"),TBLNATIONS("NATIONS"),TBLUNITS("UNITS"),TBLMODULES( "MODULES"),IDNATION("IDNATION"),
ID("ID"),IDMOD("IDMODULE"),IDUNIT("IDUNIT"),UNIT("UNITNAME "),IDM("IDMAP"),NUMBER("MAPNUMBER"),
MAPIMG("MAPPICTURE"),UNITIMAGE("UNITPICTURE"),OWNER("MODULEOWNER "),DESC("DESCRIPTION"),FLAG("FLAG"),
STATUT("STATUS"),NAME("NATION"),MODULE("MODULENAME"),EDITORMOD( "EDITOR"),ALL("*");

Sqlite3Session ASLDBSession;


Hoping this could be helpful

Regards

Biobytes
 
Read Message
Read Message
Read Message
Previous Topic: How to set GridCtrl header font size?
Next Topic: Converting HTML to "normal" text
Goto Forum:
  


Current Time: Sat Jul 19 08:06:52 CEST 2025

Total time taken to generate the page: 0.03216 seconds