Answer the question
In order to leave comments, you need to log in
How to do it right? Should I make a new table or put everything in the finished one?
There is a database with a list of clients. Two tables: the clients themselves and the table of applications.
CREATE TABLE IF NOT EXISTS `companies` (
`numbr` int(11) NOT NULL,
`compname` varchar(255) NOT NULL DEFAULT '',
`phone_main` varchar(255) DEFAULT NULL,
`phone_extra` varchar(255) DEFAULT NULL,
`adress` varchar(255) DEFAULT NULL,
`last_order` date DEFAULT NULL
) ENGINE=InnoDB AUTO_INCREMENT=35 DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS `orders` (
`num` int(11) NOT NULL,
`orders` varchar(255) DEFAULT NULL,
`date_exec` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question