describe instructor; +-----------+--------------+------+-----+-------6ren">
gpt4 book ai didi

mysql - 将 "Entity Relational Language"中的数据库查询转换为SQL语句

转载 作者:行者123 更新时间:2023-11-29 21:12:24 25 4
gpt4 key购买 nike

标题说明了一切。我得到了一位 table 教练:

mysql> describe instructor;
+-----------+--------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+-----------+--------------+------+-----+---------+-------+
| ID | char(5) | NO | PRI | NULL | |
| name | varchar(20) | YES | | NULL | |
| dept_name | varchar(20) | YES | | NULL | |
| salary | decimal(8,2) | YES | | NULL | |
+-----------+--------------+------+-----+---------+-------+
4 rows in set (0.00 sec)

我必须为此数据库查询编写一条 SQL 语句:

Ơ dept_name="物理"(讲师)

最佳答案

SHOW CREATE TABLE instructor;

会给你创建表查询。

更多见解http://dev.mysql.com/doc/refman/5.7/en/show-create-table.html

关于mysql - 将 "Entity Relational Language"中的数据库查询转换为SQL语句,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36252853/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com