•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the MySQL section within the Web Development category of DaniWeb, a massive community of 427,119 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,092 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our MySQL advertiser: Programming Forums
Views: 1179 | Replies: 1
![]() |
•
•
Join Date: Oct 2006
Posts: 1
Reputation:
Rep Power: 0
Solved Threads: 0
do these tables look like they will work? i want theerror.errorcode to be a forgin key in the hostname.error but i don't know how to do the insert or if it's even posiable the way i have it set up.
thank you,
shark
thank you,
shark
// Table: error
Create Table: CREATE TABLE `error` (
`errorcode` tinyint(10) NOT NULL,
`errorname` varchar(40) NOT NULL,
PRIMARY KEY (`errorcode`),
UNIQUE KEY `errorname` (`errorname`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1
// Table: hostname
Create Table: CREATE TABLE `hostname` (
`PK` int(11) NOT NULL auto_increment,
`HostName` varchar(10) NOT NULL,
`Date` date NOT NULL,
`Error` tinyint(3) NOT NULL,
`tile` varchar(3) NOT NULL,
`location` tinyint(10) NOT NULL,
PRIMARY KEY (`PK`),
UNIQUE KEY `HostName` (`HostName`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1
// Table: location
Create Table: CREATE TABLE `location` (
`locationnumber` tinyint(10) NOT NULL,
`location` varchar(20) NOT NULL,
`labname` varchar(20) NOT NULL,
PRIMARY KEY (`locationnumber`),
UNIQUE KEY `location` (`location`,`labname`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ![]() |
•
•
•
•
•
•
•
•
DaniWeb MySQL Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- Help on General Best Practices for Table/Database Design (Database Design)
- My website doesn't work on some computers. (HTML and CSS)
- Best way to develop db for survey? (Database Design)
- how do I search for a name in table? (Visual Basic 4 / 5 / 6)
- Sql2k, How to set or unset IDENTITY Property of a column through code or stored (Legacy and Other Languages)
- extending Horizontal as well as vertical ???? (HTML and CSS)
- FTP Software for new load balancing set up (Geeks' Lounge)
- How can i deledet and update from table ??????? (PHP)
- set me some home work plz (C++)
Other Threads in the MySQL Forum
- Previous Thread: MySQL DB just DROPPED!
- Next Thread: Customizing phpMyAdmin


Linear Mode