Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to create an index with create table
Message
From
12/03/2014 07:54:09
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
How to create an index with create table
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01596225
Message ID:
01596225
Views:
70
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
Next
Reply
Map
View

Click here to load this message in the networking platform