Пример:
use trading_research;
drop table if exists stock_history;
create table stock_history
(
company_id integer(4) NOT NULL,
price_date date NOT NULL,
primary key(company_id, price_date),
opening_price decimal(10,2) NULL,
closing_price decimal(10,2) NULL,
high_price decimal(10,2) NULL,
low_price decimal(10,2) NULL,
adjusted_closing_price decimal(10,2) NULL,
volume decimal(20, 2) NULL,
constraint foreign key (company_id) references stock_company (company_id) on delete cascade on update cascade
);
Если вы подробно расскажете о том, что вы пытаетесь сделать, и/или об ошибках, которые вы получаете, я могу помочь больше.
person
C. Ross
schedule
08.06.2009