Class that helps you to generate sql-statements without handling string concatenation.
Class that helps you to generate sql-statements without handling string concatenation.
Located in /tgcSqlBuilder.php (line 178)
Class | Description |
---|---|
![]() |
Subclass of tgcSqlBuilder that helps to create SELECT sql-statements. |
![]() |
Subclass of tgcSqlBuilder that helps to create INSERT sql-statements. |
![]() |
Subclass of tgcSqlBuilder that helps to create DELETE sql-statements. |
![]() |
Subclass of tgcSqlBuilder that helps to create UPDATE sql-statements. |
Constructor
Constructor
Add the statements table.
Add the statements table.
1 $sql = new tgcSqlBuilder_Select($dbc);
2 $sql->addTable('users');
3
Escapes a variable appropriate for the used database-system.
Escapes a variable appropriate for the used database-system.
Generate the sql-statement.
Generate the sql-statement. This method generates a query based on the object-information and returns it as a string.
1 $sql = new tgcSqlBuilder_Select($dbc);
2 $query = $sql->generateQuery();
Remove one or all tablename(s).
Remove one or all tablename(s). If you specify a tablename, then this one will be removed. If you don't specify a param, then all tablenames will be removed.
1 // remove a specific tablename
2 $sql = new tgcSqlBuilder_Select($dbc);
3 $sql->removeTable('users');
4
5 // remove all tablenames
6 $sql = new tgcSqlBuilder_Select($dbc);
7 $sql->removeTable();
Reset the object's whole information.
Reset the object's whole information.
Documentation generated on Fri, 19 Nov 2004 23:54:05 +0100 by phpDocumentor 1.2.3