创建一个存储过程来获取数据库中存储的特定 MySQL 表的详细信息?
摘要:
示例mysql>DELIMITER//mysql>CreateProceduretabledetails()->BEGIN->DESCRIBEStudent_detail;->END//QueryOK,0rowsaffected(0.00sec)mysql>DELIMITER;mysql>CALLtabledetail...
示例
mysql> DELIMITER // mysql> Create Procedure tabledetails() -> BEGIN -> DESCRIBE Student_detail; -> END // Query OK, 0 rows affected (0.00 sec) mysql> DELIMITER ; mysql> CALL tabledetails; +-------------+-------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +-------------+-------------+------+-----+---------+-------+ | Studentid | int(11) | NO | PRI | NULL | | | StudentName | varchar(20) | YES | | NULL | | | address | varchar(20) | YES | | NULL | | +-------------+-------------+------+-----+---------+-------+ 3 rows in set (0.01 sec) Query OK, 0 rows affected (0.04 sec)
以上就是创建一个存储过程来获取数据库中存储的特定 MySQL 表的详细信息?的详细内容,更多请关注其它相关文章!