ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:dictionary:createindexsql

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
dictionary:createindexsql [2015/08/29 18:51] mnewnhamv5:dictionary:createindexsql [2016/01/13 02:06] (current) – ↷ Links adapted because of a move operation mnewnham
Line 14: Line 14:
  
  
-In order to actually create the index, the returned array must be passed to the [[dictionary:executeSqlArray|executeSqlArray()]] method. +In order to actually create the index, the returned array must be passed to the [[v5:dictionary:executesqlarray|executeSqlArray()]] method. 
  
 ===== Parameters ===== ===== Parameters =====
Line 39: Line 39:
  
 $dict = NewDataDictionary($db); $dict = NewDataDictionary($db);
-$sqlarray = $dict->createIndexSql('ACT','SALESIDX', 'ACTMAXSALE,ACTNO');+$sqlarray = $dict->createIndexSql('SALESIDX','ACT', 'ACTMAXSALE,ACTNO');
 print_r($sqlarray); print_r($sqlarray);
 /* /*
Line 46: Line 46:
 Array Array
 ( (
-    [0] => CREATE INDEX ACT ON SALESIDX (ACTMAXSALE, ACTNO)+    [0] => CREATE INDEX SALESIDX ON ACT (ACTMAXSALE, ACTNO)
 ) )
 */ */
 </code> </code>
  
v5/dictionary/createindexsql.1440867098.txt.gz · Last modified: 2017/04/21 11:28 (external edit)