Overview
Features
Download
Documentation
Community
Add-Ons & Services

Poco Data use placeholder for column name

Please post support and help requests here.

Poco Data use placeholder for column name

Postby indijanc » 31 Dec 2013, 15:35

I'm using Poco data for sending and retrieving data from sqlite database. I was wondering if there's a way to have a placeholder for the column name when selecting rows. Similar to the use expression. For example:

Code: Select all
Session ses("SQLite", "sample.db");
int count = 0;
std::string myColumn = "TestColumnName";
ses << "SELECT COUNT(*) FROM PERSON WHERE :ColumnName = 1", into(count), use(myColumn), now;
indijanc
 
Posts: 3
Joined: 31 Dec 2013, 14:58

Return to Support

Who is online

Users browsing this forum: No registered users and 1 guest

cron