Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to create an index with create table
Message
De
12/03/2014 09:29:51
 
 
À
12/03/2014 09:24:31
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01596225
Message ID:
01596282
Vues:
39
Lutz,

Dresden ist auf meiner 'bucketlist'. Ich bin geborenere Salzburger war aber nie in Dresden. Ich war in Halberstadt in 1966.
Jetzt sehe ich oft SOKO dresden bei ZDF.de oder ARD.de






>Peter
>
>Das ist richtig.
>
>Bei FOREIGN KEY in CREATE TABLE ist REFERENCES Pflicht. Es ist etwas unübersichtlich geschrieben.
>
>FOREIGN KEY meint ja auch eine Beziehung. :)
>
>Ich habe den Fehler gesucht ...
>
>Lutz
>
>>Danke Lutz,
>>'index on ...' ist die einzige moeglichkeit einen index on referenz zu einem child table herzustellen
>>
>>Peter
>>
>>
>>
>>>Peter, just start with the example from CREATE TABLE
>>>
>>>CREATE TABLE Customer ;
>>>   (SalesID c(6), ;
>>>   CustId i PRIMARY KEY, ;
>>>   CustName c(20) UNIQUE,   ;
>>>   SalesBranch c(3), ;
>>>   FOREIGN KEY SalesId TAG SalesId REFERENCES Salesman)
>>>
>>>
>>>This works
>>>
>>>Lutz
>>>>how do you create a regular indx (without relation to another table) in a create table statement
>>>>
>>>>tname=[JFUNDS]
>>>>
>>>>
>>>>CREATE TABLE ([data\]+tname) (;
>>>>	id i PRIMARY KEY default sp_default("ID","JFUNDS"),;
>>>>	fundname c(20) FOREIGN KEY UPPER(fundname) TAG fundname,;    <<------- syntax error on this line
>>>>	status c(10) FOREIGN KEY UPPER(status) TAG status,;
>>>>	Notes  m,;
>>>>	insdttm T DEFAULT sp_default("DATETIME"),;
>>>>	insuser_id I DEFAULT sp_default("USERID"),;	
>>>>	upddttm T DEFAULT sp_default("DATETIME"),;
>>>>	upduser_id I DEFAULT sp_default("USERID") ;
>>>>	  )
>>>>
>>>>
>>>>
>>>>thanks
>>>>
>>>>Peter
Peter Cortiel
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform