Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Newbie corner » SqlSchema sch(MY_SQL) compound and or unique indexes
SqlSchema sch(MY_SQL) compound and or unique indexes [message #55930] Mon, 04 January 2021 13:19 Go to previous message
BetoValle is currently offline  BetoValle
Messages: 203
Registered: September 2020
Location: Brasil Valinhos SP
Experienced Member
Hi,

so that the schema file (sch) creates an index (compound) just like the sql command is created as

     CREATE INDEX index1 ON table1(A,B);
      and
     CREATE UNIQUE INDEX index2 ON table(C,D);
   


if I leave only with index keyword it will create 4 distinct indexes and my intention is 2 indexes.

sch:
   
     TABLE_(TABLE1)
        INT_     (ID)       PRIMARY_KEY
	STRING_  (A, 	30)		INDEX ?? (1) 
	STRING_  (B, 	30)             INDEX ?? (1) 
	STRING_  (C,	30)		INDEX ??  UNIQUE? (2)
	STRING_  (D,	30)		INDEX ??  UNIQUE? (2) 

     END_TABLE	
   


How i do to create sch with 2 compound indexes ?

thanks




 
Read Message
Read Message
Previous Topic: function javascript after ajax U++ / Skylark08 tutorial
Next Topic: How to achieve dynamic layout scaling ?
Goto Forum:
  


Current Time: Sun Apr 28 20:42:44 CEST 2024

Total time taken to generate the page: 0.03134 seconds