以下は私が持っているものです
+++++++++++++++
+ id + myData +
+++++++++++++++
+ 1 + ABCD +
+ 2 + ABCDD +
+++++++++++++++
私が実行すると
select char_length((select myData from mytable where id = 1)) as MyLength;
私は結果を得る
++++++++++++
+ MyLength +
++++++++++++
+ 4 +
++++++++++++
しかし、クエリを実行すると、
select char_length((select myData from mytable) as MyLength;
次のようにエラーが発生します
DDL and DML statements are not allowed in the query panel for MySQL; only SELECT statements are allowed.