#include <cSQLCmd.h>
full 'select' query to be used for cSQLStatement. override MakeCommand() SQLCMD_Select
◆ cSQLCmdSelect()
GrayLib::cSQLCmdSelect::cSQLCmdSelect |
( |
cStringA |
sFromTable | ) |
|
◆ ~cSQLCmdSelect()
GrayLib::cSQLCmdSelect::~cSQLCmdSelect |
( |
| ) |
|
|
virtual |
◆ AddSelectCol()
void GrayLib::cSQLCmdSelect::AddSelectCol |
( |
const char * |
pszColumnName | ) |
|
◆ get_CmdType()
virtual SQLCMD_TYPE GrayLib::cSQLCmdSelect::get_CmdType |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ isResultsExpected()
virtual bool GrayLib::cSQLCmdSelect::isResultsExpected |
( |
| ) |
const |
|
inlinevirtual |
◆ MakeCommand()
void GrayLib::cSQLCmdSelect::MakeCommand |
( |
const cSQLConfigCmd & |
cfg | ) |
|
|
overridevirtual |
◆ put_GroupBy()
void GrayLib::cSQLCmdSelect::put_GroupBy |
( |
cStringA |
sColumnName | ) |
|
◆ put_Limit()
void GrayLib::cSQLCmdSelect::put_Limit |
( |
int |
iLimit = 1 | ) |
|
limit how many rows to get back. sm_bUseLIMITCommand LIMIT and OFFSET commands are only used by MySQL and PostgreSQL MSSQL uses 'TOP' clause ?
◆ put_OrderBy()
void GrayLib::cSQLCmdSelect::put_OrderBy |
( |
cStringA |
sColumnName | ) |
|
◆ put_Select()
void GrayLib::cSQLCmdSelect::put_Select |
( |
cStringA |
sSelect | ) |
|
set the select set command string. TODO Use SetSelectColsF instead.
◆ ResetCommand()
void GrayLib::cSQLCmdSelect::ResetCommand |
( |
| ) |
|
|
overridevirtual |
◆ SetCount()
void GrayLib::cSQLCmdSelect::SetCount |
( |
const char * |
pszColumnName = nullptr | ) |
|
◆ SetCountWhereInt()
void GrayLib::cSQLCmdSelect::SetCountWhereInt |
( |
const char * |
pszColumnName, |
|
|
int |
iValue |
|
) |
| |
Count if current table has any matches in this field. This Works for both MySQL and MSSQL - sCount like sm_szSQLSelect
◆ SetSelectColsF()
void _cdecl GrayLib::cSQLCmdSelect::SetSelectColsF |
( |
const char * |
pszColumnName, |
|
|
|
... |
|
) |
| |
◆ m_iLimit
'TOP' if MSSQL or 'LIMIT' if MySQL. Should always be used with 'order by'. m_sOrderBy
◆ m_sGroupBy
cStringA GrayLib::cSQLCmdSelect::m_sGroupBy |
|
protected |
◆ m_sOrderBy
cStringA GrayLib::cSQLCmdSelect::m_sOrderBy |
|
protected |
◆ m_sSelect
cStringA GrayLib::cSQLCmdSelect::m_sSelect |
|
protected |
What fields should be returned from Table and joins?
◆ m_Where
The documentation for this class was generated from the following files: