VitoCorleone
Programmer
Hi,
I would like to add a column so that images can be inserted and viewed from a mysql database. I have set up the table as follows:
CREATE TABLE Staff
(staff_no CHARACTER(5) PRIMARY KEY,
fname CHARACTER VARYING(20),
lname CHARACTER VARYING(20),
position_ CHARACTER VARYING(20),
sex CHARACTER,
dob DATE,
salary DECIMAL(9,2),
supervisor_staff_no CHARACTER(5), -- FOREIGN KEY
branch_no CHARACTER(4)); -- FOREIGN KEY
I have been having problems in finding the right syntax to create the BLOB if that is what i need. Can anyone help?
I would like to add a column so that images can be inserted and viewed from a mysql database. I have set up the table as follows:
CREATE TABLE Staff
(staff_no CHARACTER(5) PRIMARY KEY,
fname CHARACTER VARYING(20),
lname CHARACTER VARYING(20),
position_ CHARACTER VARYING(20),
sex CHARACTER,
dob DATE,
salary DECIMAL(9,2),
supervisor_staff_no CHARACTER(5), -- FOREIGN KEY
branch_no CHARACTER(4)); -- FOREIGN KEY
I have been having problems in finding the right syntax to create the BLOB if that is what i need. Can anyone help?