Skip to content
WJunction - Webmaster Forum

HINT: Visually view a mysql table

Status
Not open for further replies.
There's a small peice of mysql syntax that will create a visual form of a table ok soo lets say we just created a database with the following create command

Code:
CREATE TABLE SessHolder (
    id varchar(32) NOT NULL,
    access int(10) unsigned,
    data text,
    PRIMARY KEY (id)
);
So now if we run the DESCRIBE Command we should
get a result like so.

Code:
mysql> DESCRIBE SessHolder
+--------+------------------+------+-----+---------+-------+
| Field  | Type             | Null | Key | Default | Extra |
+--------+------------------+------+-----+---------+-------+
| id     | varchar(32)      |      | PRI |         |       |
| access | int(10) unsigned | YES  |     | NULL    |       |
| data   | text             | YES  |     | NULL    |       |
+--------+------------------+------+-----+---------+-------+
Im sure you will all agree that this is much easier to read!

Peace
 

1 comment

Status
Not open for further replies.

About the author

L
Active Member · Joined
I am a skilled programmer within PHP,HTML,CSS,MYSQL and also the owner of several websites Programming, Football...
1,367
Messages
1
Reactions
38
Points

Advertise on WJunction

Reach 1000's of webmasters, hosts & affiliates. Banner & sponsored-thread slots available.

Contact us
Back
Top Bottom