Sophie

Sophie

distrib > Mandriva > 2008.1 > i586 > by-pkgid > 703d980c580707c382b4e43e25965bc5 > files > 12037

php-manual-pt_BR-5.2.4-1mdv2008.1.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML
><HEAD
><TITLE
>Funções de SQL Ovrimos</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
REL="HOME"
TITLE="Manual do PHP"
HREF="index.html"><LINK
REL="UP"
TITLE="Referência das Funções"
HREF="funcref.html"><LINK
REL="PREVIOUS"
TITLE="output_reset_rewrite_vars"
HREF="function.output-reset-rewrite-vars.html"><LINK
REL="NEXT"
TITLE="ovrimos_close"
HREF="function.ovrimos-close.html"><META
HTTP-EQUIV="Content-type"
CONTENT="text/html; charset=UTF-8"></HEAD
><BODY
CLASS="reference"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>Manual do PHP</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="function.output-reset-rewrite-vars.html"
ACCESSKEY="P"
>Anterior</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="function.ovrimos-close.html"
ACCESSKEY="N"
>Próxima</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="reference"
><A
NAME="ref.ovrimos"
></A
><DIV
CLASS="TITLEPAGE"
><H1
CLASS="title"
>CXVI. Funções de SQL Ovrimos</H1
><DIV
CLASS="PARTINTRO"
><A
NAME="AEN161604"
></A
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="ovrimos.intro"
>Introdução</A
></H1
><P
>&#13;     Ovrimos SQL Server, é um cliente/servidor, RDBMS transacional
     combinado com capacidades Web e transações rápidas.
    </P
><DIV
CLASS="note"
><BLOCKQUOTE
CLASS="note"
><P
><B
>Nota: </B
>Esta extensão não está
 disponível na plataforma Windows.</P
></BLOCKQUOTE
></DIV
></DIV
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="ovrimos.requirements"
>Dependências</A
></H1
><P
>&#13;     Você precisa instalar a biblioteca
     sqlcli disponível na distribuição do Ovrimos SQL Server.
    </P
></DIV
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="ovrimos.installation"
>Instalação</A
></H1
><P
>&#13;  Para ativar o suporte Ovrimos no PHP apenas compile o PHP com o parâmetro
  <CODE
CLASS="option"
>--with-ovrimos[=DIR]</CODE
>
  na sua linha do configure. DIR é o diretório de instalação
  da libsqlcli do Ovrimos.
 </P
></DIV
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="ovrimos.configuration"
>Configurações em execução</A
></H1
><P
>Esta extensão não define nenhum parâmetro de configuração no <TT
CLASS="filename"
>php.ini</TT
>.</P
></DIV
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="ovrimos.resources"
>Tipos Resource</A
></H1
><P
>&#13;    </P
></DIV
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="ovrimos.examples"
>Exemplos</A
></H1
><P
>&#13;     <TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
CLASS="EXAMPLE"
><TR
><TD
><DIV
CLASS="example"
><A
NAME="AEN161627"
></A
><P
><B
>Exemplo 1. 
       Conectando com um servidor Ovrimos SQL Server e fazendo um select de uma tabela do sistema
      </B
></P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
CELLPADDING="5"
><TR
><TD
><code><font color="#000000">
<font color="#0000BB">&lt;?php<br />$conn </font><font color="#007700">= </font><font color="#0000BB">ovrimos_connect</font><font color="#007700">(</font><font color="#DD0000">"server.domain.com"</font><font color="#007700">, </font><font color="#DD0000">"8001"</font><font color="#007700">, </font><font color="#DD0000">"admin"</font><font color="#007700">, </font><font color="#DD0000">"password"</font><font color="#007700">);<br />if (</font><font color="#0000BB">$conn </font><font color="#007700">!= </font><font color="#0000BB">0</font><font color="#007700">) {<br />&nbsp;&nbsp;&nbsp;&nbsp;echo </font><font color="#DD0000">"Connection ok!"</font><font color="#007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#0000BB">$res </font><font color="#007700">= </font><font color="#0000BB">ovrimos_exec</font><font color="#007700">(</font><font color="#0000BB">$conn</font><font color="#007700">, </font><font color="#DD0000">"select table_id, table_name from sys.tables"</font><font color="#007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;if (</font><font color="#0000BB">$res </font><font color="#007700">!= </font><font color="#0000BB">0</font><font color="#007700">) {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo </font><font color="#DD0000">"Statement ok!"</font><font color="#007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#0000BB">ovrimos_result_all</font><font color="#007700">(</font><font color="#0000BB">$res</font><font color="#007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#0000BB">ovrimos_free_result</font><font color="#007700">(</font><font color="#0000BB">$res</font><font color="#007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#0000BB">ovrimos_close</font><font color="#007700">(</font><font color="#0000BB">$conn</font><font color="#007700">);<br />}<br /></font><font color="#0000BB">?&gt;</font>
</font>
</code></TD
></TR
></TABLE
></DIV
></TD
></TR
></TABLE
>
     Isto irá apenas conectar com o servidor Ovrimos SQL.
    </P
></DIV
></DIV
><DIV
CLASS="TOC"
><DL
><DT
><B
>Índice</B
></DT
><DT
><A
HREF="function.ovrimos-close.html"
>ovrimos_close</A
>&nbsp;--&nbsp;Fecha o conexão com o ovrimos</DT
><DT
><A
HREF="function.ovrimos-commit.html"
>ovrimos_commit</A
>&nbsp;--&nbsp;Grava a transação</DT
><DT
><A
HREF="function.ovrimos-connect.html"
>ovrimos_connect</A
>&nbsp;--&nbsp;Conecta com o banco de dados especificado</DT
><DT
><A
HREF="function.ovrimos-cursor.html"
>ovrimos_cursor</A
>&nbsp;--&nbsp;Retorna o nome do cursor</DT
><DT
><A
HREF="function.ovrimos-exec.html"
>ovrimos_exec</A
>&nbsp;--&nbsp;Executa um comando SQL</DT
><DT
><A
HREF="function.ovrimos-execute.html"
>ovrimos_execute</A
>&nbsp;--&nbsp;Executa um comando SQL preparado</DT
><DT
><A
HREF="function.ovrimos-fetch-into.html"
>ovrimos_fetch_into</A
>&nbsp;--&nbsp;Obtem uma linha de um conjunto de resultados</DT
><DT
><A
HREF="function.ovrimos-fetch-row.html"
>ovrimos_fetch_row</A
>&nbsp;--&nbsp;Obtém uma linha do conjuto de resultados</DT
><DT
><A
HREF="function.ovrimos-field-len.html"
>ovrimos_field_len</A
>&nbsp;--&nbsp;Retorna a largura da coluna</DT
><DT
><A
HREF="function.ovrimos-field-name.html"
>ovrimos_field_name</A
>&nbsp;--&nbsp;Retorna o nome da coluna</DT
><DT
><A
HREF="function.ovrimos-field-num.html"
>ovrimos_field_num</A
>&nbsp;--&nbsp;
     Retorna o índice da coluna (baseado em 1)
    </DT
><DT
><A
HREF="function.ovrimos-field-type.html"
>ovrimos_field_type</A
>&nbsp;--&nbsp;
     Retorna o tipo (numérico) da coluna
    </DT
><DT
><A
HREF="function.ovrimos-free-result.html"
>ovrimos_free_result</A
>&nbsp;--&nbsp;Libera o result_id especificado</DT
><DT
><A
HREF="function.ovrimos-longreadlen.html"
>ovrimos_longreadlen</A
>&nbsp;--&nbsp;
     Especifica quantos bytes são obtidos dos tipos de dados long
    </DT
><DT
><A
HREF="function.ovrimos-num-fields.html"
>ovrimos_num_fields</A
>&nbsp;--&nbsp;Retorna o número de colunas</DT
><DT
><A
HREF="function.ovrimos-num-rows.html"
>ovrimos_num_rows</A
>&nbsp;--&nbsp;
     Retorna o número de linhas afetadas por uma operação update
    </DT
><DT
><A
HREF="function.ovrimos-prepare.html"
>ovrimos_prepare</A
>&nbsp;--&nbsp;Prepara um comando SQL</DT
><DT
><A
HREF="function.ovrimos-result-all.html"
>ovrimos_result_all</A
>&nbsp;--&nbsp;
     Mostra todo o conjunto de resultados como uma tabela HTML
    </DT
><DT
><A
HREF="function.ovrimos-result.html"
>ovrimos_result</A
>&nbsp;--&nbsp;Obtém a coluna da saída</DT
><DT
><A
HREF="function.ovrimos-rollback.html"
>ovrimos_rollback</A
>&nbsp;--&nbsp;Desfaz a transação</DT
></DL
></DIV
></DIV
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="function.output-reset-rewrite-vars.html"
ACCESSKEY="P"
>Anterior</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>Principal</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="function.ovrimos-close.html"
ACCESSKEY="N"
>Próxima</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>output_reset_rewrite_vars</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="funcref.html"
ACCESSKEY="U"
>Acima</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>ovrimos_close</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>