cSmartSqlStatement::SetHavingClause() - rstoetter/csmartsqlstatement-php GitHub Wiki

Method SetHavingClause( )

 public   mixed rstoetter\cSmartSqlStatement\cSmartSqlStatement::SetHavingClause(string $str_having)

The method SetHavingClause( ) sets a new HAVING clause The whole statement will be rescanned

Example: $obj_sql_statement = new cSmartSqlStatement('select'); $query = "select * from tbl where x= 5 and z = sqrt( v ) "; $obj_sql_statement->ScanStatement( $query ); $obj_sql_statement->SetHavingClause( '( c = "123" OR d = 25 OR h = gf) ' ); *

Arguments

  • $str_having string - <p>the new HAVING</p>