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 » U++ Library support » U++ SQL » Global SqlIds
Re: Global SqlIds [message #46594 is a reply to message #46593] Mon, 06 June 2016 11:03 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13976
Registered: November 2005
Ultimate Member
You must have something else messed that is not visible from code you have posted.

I have prepared simple demonstration for you. There are two additional tricks demonstrated:

- ID1 is 'plain and simple' raw C++ example. It 'renames' ID1 to represent different name.

- ID2 is similar but using SQLID macro so that you do not have to repeat the name of columns as string literal

- ID3, NAME, SURNAM are defined using 'multi-include' trick, means you just have to list ID in single place (ids.i file here)

Hope this help. If not, you are beyond help Smile

Mirek
  • Attachment: SqlIDS.zip
    (Size: 1.84KB, Downloaded 474 times)
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Sqlite and DUAL_PRIMARY_KEY
Next Topic: [solved]crash when execute sql command
Goto Forum:
  


Current Time: Sun May 12 12:59:55 CEST 2024

Total time taken to generate the page: 0.02381 seconds