你是说外键吧?这样写:
Create Table Student(
ID Integer Not NULL,
Name VarChar(8) Not NULL,
Primary Key (ID))
Create Table Book(
ID Integer Not NULL,
Name VarChar(240) Not NULL,
Primary Key(ID))
Create Table Book_Stu(
StudentID Integer Not NULL,
BookID Integer Not NULL,
Primary key(StudentID,BookID),
Foreign key(StudentID) References (Student),
Foreign key(BookID) References (Book))
没试过用VFP,你试试吧。
Create Table Student(
ID Integer Not NULL,
Name VarChar(8) Not NULL,
Primary Key (ID))
Create Table Book(
ID Integer Not NULL,
Name VarChar(240) Not NULL,
Primary Key(ID))
Create Table Book_Stu(
StudentID Integer Not NULL,
BookID Integer Not NULL,
Primary key(StudentID,BookID),
Foreign key(StudentID) References (Student),
Foreign key(BookID) References (Book))
没试过用VFP,你试试吧。
解决方案 »
- 问一个接口开发的问题,SetOsdDisplayMode
- GDI+用TGPBitmap.Create(300,300,PixelFormat1bppIndexed)创建单色位图
- 字符串数组问题
- delphi莫名的加载一些DLL
- delphi 如何屏蔽ctrl+c的复制功能
- ClienSocket 在非阻塞模式下用 EorrCored:=0 无法捕获错误?
- 一直没有解决的一个问题,关于ADO连接oracle数据库,在线等
- 关于IdTCPServer和IdTCPClient的基本问题,请赐教!
- 基于PC的多电机变频调速系统监控软件开发与实现
- !!!!!!!!!!!!!!!!!!指纹识别系统方面的问题,高手快快点击!!!!!!!!!!!!!!
- 谁想看看我做的试题数据库,是我的毕业设计
- 加强教育部门排课系统的统一,有志于排课系统的请进!!!由老鱼负责!!!
set rela to id into tablename
那么,对vfp表的操作是不是直接用Ttable较好较快呢?
我发现用SQL是没有vfp自己搞得快