-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathmysql-tablename.xml
More file actions
130 lines (122 loc) · 3.64 KB
/
Copy pathmysql-tablename.xml
File metadata and controls
130 lines (122 loc) · 3.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: 15d88bef8b9082fb92a3753a9e7551f9cf1836d3 Maintainer: mustafa Status: ready -->
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.mysql-tablename">
<refnamediv>
<refname>mysql_tablename</refname>
<refpurpose>Alanın tablo adını al</refpurpose>
</refnamediv>
<refsynopsisdiv>
<warning>
&mysql.alternative.note;
<simplelist role="alternatives">
<member>SQL Sorgusu: <literal>SHOW TABLES</literal></member>
</simplelist>
</warning>
</refsynopsisdiv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type class="union"><type>string</type><type>false</type></type><methodname>mysql_tablename</methodname>
<methodparam><type>resource</type><parameter>sonuç</parameter></methodparam>
<methodparam><type>int</type><parameter>i</parameter></methodparam>
</methodsynopsis>
<simpara>
Bir <parameter>sonuç</parameter>'tan tablo adını alır.
</simpara>
<simpara>
Bu işlevin kullanımı önerilmemektedir. Bunun yerine, <literal>SHOW TABLES
[FROM db_adı] [LIKE 'şablon']</literal> şeklinde bir SQL ifadesi
çalıştırmak için <function>mysql_query</function> kullanılması tercih
edilebilir.
</simpara>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
<variablelist>
<varlistentry>
<term><parameter>sonuç</parameter></term>
<listitem>
<simpara>
<function>mysql_list_tables</function> işlevinden döndürülen
<type>resource</type> türünde bir sonuç göstericisi.
</simpara>
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>i</parameter></term>
<listitem>
<simpara>
Tamsayı indisi (satır/tablo numarası)
</simpara>
</listitem>
</varlistentry>
</variablelist>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<simpara>
Başarı durumunda tablo adı, hata durumunda &false; döndürülür.
</simpara>
<simpara>
Bu sonuç göstericisini veya <function>mysql_fetch_array</function> gibi
sonuç tabloları üreten bir işlevden elde edilen işlevselliğin tersini elde
etmek için <function>mysql_tablename</function> işlevini kullanın.
</simpara>
</refsect1>
<refsect1 role="examples">
&reftitle.examples;
<example>
<title>- <function>mysql_tablename</function> örneği</title>
<programlisting role="php">
<![CDATA[
<?php
mysql_connect("localhost", "mysql_user", "mysql_password");
$result = mysql_list_tables("mydb");
$num_rows = mysql_num_rows($result);
for ($i = 0; $i < $num_rows; $i++) {
echo "Tablo: ", mysql_tablename($result, $i), "\n";
}
mysql_free_result($result);
?>
]]>
</programlisting>
</example>
</refsect1>
<refsect1 role="notes">
&reftitle.notes;
<note>
<simpara>
<function>mysql_num_rows</function> işlevi sonuç göstericisindeki tablo
sayısını belirlemek için kullanılabilir.
</simpara>
</note>
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<simplelist>
<member><function>mysql_list_tables</function></member>
<member><function>mysql_field_table</function></member>
<member><function>mysql_db_name</function></member>
</simplelist>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->