請幫我解決這個小問題 這是我的代碼。我的問題是我有成千上萬的數據,我不想輸入所有的數據。什麼可能是最好的,但簡單的程序呢? 我使用SQL,被編碼的所有數據都是相同的格式正常化,我需要儘可能減少我的工作
create table Subjects
(Subject_code nvarchar(10) primary key
,Subject_name nvarchar(20)
,Description nvarchar(MAX)
,Units int)
create table Schedules
(Schedule_ID int primary key identity(650500,1)
,Section nvarchar(10)
,Subject_code nvarchar(10) foreign key references Subjects(Subject_code)
as
select subject_code from subject
where subject_code = subject_code
,Days nvarchar(10)
,Time time
,Room nvarchar(10))
是問題你有不同格式的數據庫表的數據,你需要將它轉換爲插入到你的數據庫?或者是別的什麼? – Patashu 2013-03-18 03:14:02
最好但容易的程序是什麼?你在這裏有一些表定義,並且在你的某個地方有一些含有一些數據的模糊聲明 - 你想填充表嗎?做到這一點的最佳方式取決於數據的格式。 – 2013-03-18 03:14:09
您的數據格式是什麼? – Patashu 2013-03-18 03:16:37