提交 35740d4c 编写于 作者: M Mars Liu

number

上级 b87b0e3a
...@@ -2,7 +2,9 @@ ...@@ -2,7 +2,9 @@
"node_id": "mysql-1418d1a710ab4e7c8cacb0bad047179e", "node_id": "mysql-1418d1a710ab4e7c8cacb0bad047179e",
"keywords": [], "keywords": [],
"children": [], "children": [],
"export": [], "export": [
"number.json"
],
"keywords_must": [], "keywords_must": [],
"keywords_forbid": [], "keywords_forbid": [],
"group": 0 "group": 0
......
{
"type": "code_options",
"author": "ccat",
"source": "number.md",
"notebook_enable": false,
"exercise_id": "39244600680e40848e6ab8af71f22cf1"
}
\ No newline at end of file
# 数值的隐式类型转换
Joe 需要使用下列表做一项数值计算
```mysql
create table data(
id int primary key auto_increment,
x int,
y int
);
```
计算查询为:
```mysql
select id, (x^2 + y^2)/2 as result from points;
```
得到的结果集中,result 列的类型应该是:
## 答案
decimal
## 选项
### A
float
### B
double
### C
int
### D
long
### E
byte
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册