@@ 574-584 (lines=11) @@ | ||
571 | * @param mixed $param |
|
572 | * @return string |
|
573 | */ |
|
574 | public function setFrom($param) |
|
575 | { |
|
576 | $this->paramPart['FROM'] = $param; |
|
577 | ||
578 | // In 'FROM tbl AS alias' clause, no space allowed in alias, so need |
|
579 | // not add quote to it. |
|
580 | $this->sqlPart['FROM'] = ' FROM ' |
|
581 | . $this->genSqlArrayAs($param, false, false, true); |
|
582 | ||
583 | return $this->sqlPart['FROM']; |
|
584 | } |
|
585 | ||
586 | ||
587 | /** |
|
@@ 686-693 (lines=8) @@ | ||
683 | * @param mixed $param |
|
684 | * @return string |
|
685 | */ |
|
686 | public function setSelect($param) |
|
687 | { |
|
688 | $this->paramPart['SELECT'] = $param; |
|
689 | ||
690 | $this->sqlPart['SELECT'] = 'SELECT ' . $this->genSqlArrayAs($param, true, true, true); |
|
691 | ||
692 | return $this->sqlPart['SELECT']; |
|
693 | } |
|
694 | ||
695 | ||
696 | /** |