「MySQL」COT関数でコタンジェントの値を求める

2022年1月4日

環境
Windows10 64bit
MySQL Workbench 8.0.27

書式
COT( 数値 )
SQL構文

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
SELECT
cot( 3 ) resA,
cot( 6 ) resB
SELECT cot( 3 ) resA, cot( 6 ) resB
SELECT 
 cot( 3 ) resA,
 cot( 6 ) resB

実行結果

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
resA              resB
-7.015252551434534, -3.436353004180128
resA              resB -7.015252551434534, -3.436353004180128
resA              resB
-7.015252551434534, -3.436353004180128

 

MySQL

Posted by arkgame