Hi guys,
I need to make an SQL script which updates a table with a bunch of file types. My rows are:
FileTypeID (Primary Key), FileTypeName, MIME, ReadOnly (boolean), FileExtension
A have about 40 different file types listed.
What is the most elegant way to do this? I could simply do like this:
..etc.
But is there an easier way?
I need to make an SQL script which updates a table with a bunch of file types. My rows are:
FileTypeID (Primary Key), FileTypeName, MIME, ReadOnly (boolean), FileExtension
A have about 40 different file types listed.
What is the most elegant way to do this? I could simply do like this:
Code:
INSERT INTO FileTypes (FileTypeID, FileTypeName, MIME, ReadOnly, FileExtension)
VALUES ('1','Video','WhatEverTheMIMETYPEFORMP4is','True','.mp4');
INSERT INTO FileTypes (FileTypeID, FileTypeName, MIME, ReadOnly, FileExtension)
VALUES ('2','Audio','WhatEverTheMIMETYPEFORMP3is','True','.mp3');
..etc.
But is there an easier way?