Warning: ociexecute(): OCIStmtExecute: ORA-00923: FROM keyword not found where expected in /var/www/localhost/htdocs/cgdsi/matriz/_rel/resp.php on line 56
Warning: ocifetch(): OCIFetch: ORA-24374: define not done before fetch or execute and fetch in /var/www/localhost/htdocs/cgdsi/matriz/_rel/resp.php on line 58
Pergunta
jpauloweb
pessial por favor me ajudar como faço um if dentro da query ?
$Resp = $_POST['hdResponsavel']; $queryResp = "select distinct RS.CO_COLABORADOR, RS.CO_INTERNO_UORG, RS.CO_SERVIDOR, RS.CO_SETOR, RS.DS_EMAIL, RS.NO_EMPRESA, RS.NO_RESPONSAVEL, RS.NU_COD_UPAG, RS.NU_TELEFONE, RS.SG_UF, RS.TP_RESPONSAVEL, RS.CO_SEQ_RESPONSAVEL_SISTEMA"; if($Resp == 1) { $queryResp.",S.CO_GESTOR"; } if($Resp == 2) { $queryResp.",S.CO_RESP_DESENV"; } if($Resp == 3) { $queryResp.",S.CO.RESP_PRODUCAO"; } $queryResp."from DBSISTEMA.TB_RESPONSAVEL_SISTEMA RS, DBSISTEMA.TB_SISTEMA S where RS.CO_SEQ_RESPONSAVEL_SISTEMA = S.CO_RESP_DESENV order by NO_RESPONSAVEL";o erro que ta dando é essevaleu pessoal
Link para o comentário
Compartilhar em outros sites
4 respostass a esta questão
Posts Recomendados
Participe da discussão
Você pode postar agora e se registrar depois. Se você já tem uma conta, acesse agora para postar com sua conta.