Actions

API17

Difference between revisions of "JDatabase::splitSql"

From Joomla! Documentation

(Layout updates)
(Updated to r1448:247ba8d88526)
Line 2: Line 2:
 
=={{JVer|11.1}} JDatabase::splitSql==
 
=={{JVer|11.1}} JDatabase::splitSql==
 
===Description===
 
===Description===
Splits a string of queries into an array of individual queries.  
+
Splits a string of multiple queries into an array of individual queries.  
  
 
{{Description:JDatabase::splitSql}}
 
{{Description:JDatabase::splitSql}}
Line 8: Line 8:
 
<nowiki>[</nowiki>[[Description:JDatabase::splitSql|Edit Descripton]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[Description:JDatabase::splitSql|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
</span>
===Synopsis===
 
 
<source lang="php">
 
<source lang="php">
public JDatabase::splitSql ($queries)
+
public static function splitSql ($sql)
 
</source>
 
</source>
 
{| class="wikitable"
 
{| class="wikitable"
Line 19: Line 18:
 
!Description
 
!Description
 
|-
 
|-
|$queries
+
|$sql
 
|string
 
|string
 
|
 
|
|The queries to split  
+
|Input SQL string with which to split into individual queries.
 
|-
 
|-
 
|}
 
|}
===Returns===
+
* '''Returns''' array The queries from the input string separated into an array.
array queries
+
* '''Defined''' on line 358 of libraries/joomla/database/database.php
===Defined in===
+
* '''Since''' {{JVer|11.1 }}
libraries/joomla/database/database.php (line 311)
+
* see source code in [[jplatform:database/database.php#cl-311|BitBucket]]
+
===Referenced by===
+
 
===See also===
 
===See also===
 +
* {{JVer|11.1}} '''JDatabase::splitSql source code''' on [[jplatform:database/database.php#cl-350|BitBucket]]
 +
* {{JVer|11.1}} Class [[JDatabase/11.1|JDatabase]]
 +
* {{JVer|11.1}} Subpackage [[Subpackage_Database/11.1|Database]]
 +
* [[JDatabase::splitSql|Other versions of JDatabase::splitSql]]
 +
{{SeeAlso:JDatabase::splitSql}}
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JDatabase::splitSql|Edit See Also]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[SeeAlso:JDatabase::splitSql|Edit See Also]]<nowiki>]</nowiki>
 
</span>
 
</span>
* [[JDatabase/11.1|JDatabase]]
+
===User contributed notes===
* [[JDatabase::splitSql|Other versions of this method]]
+
{{SeeAlso:JDatabase::splitSql}}
+
===Examples===
+
 
<CodeExamplesForm />
 
<CodeExamplesForm />
 
<dpl>
 
<dpl>
Line 46: Line 44:
 
category=MethodExample
 
category=MethodExample
 
include=*
 
include=*
 +
namespace=CodeExample
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
 
<noinclude>[[Category:JDatabase]][[Category:JDatabase::splitSql]]</noinclude>
 
<noinclude>[[Category:JDatabase]][[Category:JDatabase::splitSql]]</noinclude>

Revision as of 20:27, 27 April 2011

Replacement filing cabinet.png
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.

Joomla 11.1 JDatabase::splitSql

Description

Splits a string of multiple queries into an array of individual queries.

Description:JDatabase::splitSql [Edit Descripton]

public static function splitSql ($sql)
Parameter Type Default Description
$sql string Input SQL string with which to split into individual queries.
  • Returns array The queries from the input string separated into an array.
  • Defined on line 358 of libraries/joomla/database/database.php
  • Since Joomla 11.1

See also

SeeAlso:JDatabase::splitSql [Edit See Also]

User contributed notes

<CodeExamplesForm />