Friday, April 19, 2024
Useful Resources for Brilliant Manufacturing, Operational & Industrial Intelligence Technology Enthusiasts!

Automation, Control & Plant Intelligence - Articles, Analysis, Reviews, Interviews & Views

MySQL made Easy for Engineers / Technologists

Create Table in MySQL
MySQL for Engineers / Technologists

MySQL is a freely available open source Relational Database Management System (RDBMS) that uses Structured Query Language (SQL). SQL is the most popular language for adding, accessing and managing content in a database. It is most noted for its quick processing, proven reliability, ease and flexibility of use.

MySQL is an open-source relational database management system. Its name is a combination of "My", the name of co-founder Michael Widenius's daughter, and "SQL", the abbreviation for Structured Query Language.

Create Table in MySQL
In any relational database or MySQL, the goal is to store information in an Orderly fashion. The table gets this done by making the table up of columns and rows.

The columns specify what the data is going to be, while the rows contain the actual data. Below is how you could imagine a MySQL table.

(C = Column, R = Row)



Example:
CREATE TABLE Alarms(AlarmID INT NOT NULL AUTO_INCREMENT, PRIMARY KEY(AlarmID), OperName VARCHAR(30), NodeIP INT)







Result:
Tables looks like this...

C1(OperatorName) C2(AlarmAckTime) C3(NodeName) C4(IPAddress)
R1(data row 1) R1C1(data) R1C2(data) R1C3(data) R1C4(data)
R2(data row 2) R2C1(data) R2C2(data) R2C3(data) R2C4(data)
R3(data row 3) R3C1(data) R3C2(data) R3C3(data) R3C4(data)
R4(data row 4) R4C1(data) R4C2(data) R4C3(data) R4C4(data)



Free OPC Clients   /   Free OPC Servers   /   Free OPC Utilities


OPC Foundation owns all OPC trademarks including the OPC logo used throughout this site. Most of information in OPC Knowledge Base is from OPC foundation.
Free Automation Stuff This information made available on Automation Media, are provided "as is" without any representation or warranty, express or implied, of any kind, including, but not limited to, warranties of merchantability, noninfringement, or fitness for any particular purpose. Automation Meida makes no warranty or representation regarding, and does not endorse, any linked Web sites or the information appearing thereon or any of the products or services described thereon.