 |
LXXIII. ������� Ovrimos SQL
Ovrimos SQL Server ��� ������/��������� �������������� RDBMS � ��������� � Web-������������� � �������� ������������.
Ovrimos SQL Server �������� � www.ovrimos.com. ����� �������� ��������� � PHP, ������ ������������� php � ���������� '--with-ovrimos'
� ������� configure. ��� ���������� ���������� ���������� sqlcli, ��������� � ������������ Ovrimos SQL Server.
������ 1. ���������� � Ovrimos SQL Server � ����� �� ��������� �������
<?php
$conn = ovrimos_connect ("server.domain.com", "8001", "admin", "password");
if ($conn != 0) {
echo ("Connection ok!");
$res = ovrimos_exec ($conn, "select table_id, table_name from sys.tables");
if ($res != 0) {
echo "Statement ok!";
ovrimos_result_all ($res);
ovrimos_free_result ($res);
}
ovrimos_close($conn);
}
?> |
|
����� ����� ����������� ���������� � SQL Server.
- ����������
- ovrimos_close - ��������� ���������� � ovrimos
- ovrimos_commit - ������������ ����������
- ovrimos_connect - ����������� �� ����������������� ��
- ovrimos_cursor - ���������� ��� �������
- ovrimos_exec - ��������� �������� SQL
- ovrimos_execute - ��������� �������������� �������� SQL
- ovrimos_fetch_into - ��������� ��� �� ��������������� ������
- ovrimos_fetch_row - ��������� ��� �� ��������������� ������
- ovrimos_field_len - ���������� ����� ������� ������
- ovrimos_field_name - ���������� ��� ������� ������
- ovrimos_field_num - ���������� ������ (� ����� 1) ������� ������
- ovrimos_field_type - ���������� ��� (��������) ������� ������
- ovrimos_free_result - ����������� ����������������� result_id
- ovrimos_longreadlen - �������������, ������� ���� ������������� �� long-����� ������
- ovrimos_num_fields - ���������� ���������� ��������
- ovrimos_num_rows - ���������� ���������� �����, ����������� � ��������� ����������
- ovrimos_prepare - �������������� �������� SQL
- ovrimos_result_all - �������� ���� �������������� ����� ��� HTML-�������
- ovrimos_result - ����������� ������� ������
- ovrimos_rollback - ���������� ����������
|  |