<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>http://sqle.ru/index.php?action=history&amp;feed=atom&amp;title=SQL%2FMySQL%2FProcedure_Function%2FPerl</id>
		<title>SQL/MySQL/Procedure Function/Perl - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://sqle.ru/index.php?action=history&amp;feed=atom&amp;title=SQL%2FMySQL%2FProcedure_Function%2FPerl"/>
		<link rel="alternate" type="text/html" href="http://sqle.ru/index.php?title=SQL/MySQL/Procedure_Function/Perl&amp;action=history"/>
		<updated>2026-04-06T00:14:14Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://sqle.ru/index.php?title=SQL/MySQL/Procedure_Function/Perl&amp;diff=5394&amp;oldid=prev</id>
		<title> в 13:46, 26 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://sqle.ru/index.php?title=SQL/MySQL/Procedure_Function/Perl&amp;diff=5394&amp;oldid=prev"/>
				<updated>2010-05-26T13:46:00Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 13:46, 26 мая 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;text-align: center;&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
			</entry>

	<entry>
		<id>http://sqle.ru/index.php?title=SQL/MySQL/Procedure_Function/Perl&amp;diff=5395&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://sqle.ru/index.php?title=SQL/MySQL/Procedure_Function/Perl&amp;diff=5395&amp;oldid=prev"/>
				<updated>2010-05-26T10:17:10Z</updated>
		
		<summary type="html">&lt;p&gt;1 версия&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Calling a stored procedure in Perl==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;sql&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
        &lt;br /&gt;
$dbh = DBI-&amp;gt;connect(&amp;quot;DBI:mysql:$database:$host:$port&amp;quot;,&amp;quot;$user&amp;quot;, &amp;quot;$password&amp;quot;,{ PrintError =&amp;gt; 0}) || die $DBI::errstr;&lt;br /&gt;
                  &lt;br /&gt;
if ($dbh-&amp;gt;do(&amp;quot;call error_test_proc(1)&amp;quot;))&lt;br /&gt;
{&lt;br /&gt;
    printf(&amp;quot;Stored procedure execution succeeded\n&amp;quot;);&lt;br /&gt;
}&lt;br /&gt;
else&lt;br /&gt;
{&lt;br /&gt;
    printf(&amp;quot;Error executing stored procedure: MySQL error %d (SQLSTATE %s)\n %s\n&amp;quot;,&lt;br /&gt;
             $dbh-&amp;gt;err,$dbh-&amp;gt;state,$dbh-&amp;gt;errstr); &lt;br /&gt;
}&lt;br /&gt;
        &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Get returning value from a MySQL stored procedure in Perl==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;sql&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
$stmt=$my_db-&amp;gt;prepare(&amp;quot;SELECT isodd(?)&amp;quot;) or die($my_db-&amp;gt;error);&lt;br /&gt;
$stmt-&amp;gt;bind_param(&amp;quot;i&amp;quot;,$aNumber) or die($stmt-&amp;gt;error);&lt;br /&gt;
$stmt-&amp;gt;execute() or die($stmt-&amp;gt;error);&lt;br /&gt;
$stmt-&amp;gt;bind_result($isodd);&lt;br /&gt;
$stmt-&amp;gt;fetch();&lt;br /&gt;
if ($isodd == 1 )&lt;br /&gt;
   printf(&amp;quot;%d is an odd number\n&amp;quot;,$aNumber);&lt;br /&gt;
else&lt;br /&gt;
   printf(&amp;quot;%d is an even number\n&amp;quot;,$aNumber);&lt;br /&gt;
        &amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>