You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by "zhoubin7 (via GitHub)" <gi...@apache.org> on 2023/02/08 02:12:40 UTC

[GitHub] [shardingsphere] zhoubin7 opened a new issue, #24053: no viable alternative at input 'INSERT'

zhoubin7 opened a new issue, #24053:
URL: https://github.com/apache/shardingsphere/issues/24053

   ## Question
   
   select *,INSERT ( receiver_phone, 4, 4, '****' ) AS 'receiverPhone' from table
   
   
   'insert' in select query fields is not supported


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [shardingsphere] zhoubin7 commented on issue #24053: no viable alternative at input 'INSERT'

Posted by "zhoubin7 (via GitHub)" <gi...@apache.org>.
zhoubin7 commented on issue #24053:
URL: https://github.com/apache/shardingsphere/issues/24053#issuecomment-1445014386

   > _INSERT (receiver_phone, 4, 4, '_ ***' ) AS 'receiverPhone'
   
   ![image](https://user-images.githubusercontent.com/38552814/221343351-406a27c2-4c6c-4521-b3c8-1cc3818fd6a0.png)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [shardingsphere] RaigorJiang commented on issue #24053: no viable alternative at input 'INSERT'

Posted by "RaigorJiang (via GitHub)" <gi...@apache.org>.
RaigorJiang commented on issue #24053:
URL: https://github.com/apache/shardingsphere/issues/24053#issuecomment-1445228972

   Ok, there is an extra comma in your original description, so it will not work when copying.
   
   
   > select _,INSERT ( receiver_phone, 4, 4, '_***' ) AS 'receiverPhone' from table
   > 
   > 'insert' in select query fields is not supported
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [shardingsphere] RaigorJiang commented on issue #24053: no viable alternative at input 'INSERT'

Posted by "RaigorJiang (via GitHub)" <gi...@apache.org>.
RaigorJiang commented on issue #24053:
URL: https://github.com/apache/shardingsphere/issues/24053#issuecomment-1421913719

   Hi @zhoubin7 
   What database protocol are you using? 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [shardingsphere] zhoubin7 commented on issue #24053: no viable alternative at input 'INSERT'

Posted by "zhoubin7 (via GitHub)" <gi...@apache.org>.
zhoubin7 commented on issue #24053:
URL: https://github.com/apache/shardingsphere/issues/24053#issuecomment-1422214703

   > 你好@zhoubin7 你使用什么数据库协议?
   
   mysql


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [shardingsphere] RaigorJiang commented on issue #24053: no viable alternative at input 'INSERT'

Posted by "RaigorJiang (via GitHub)" <gi...@apache.org>.
RaigorJiang commented on issue #24053:
URL: https://github.com/apache/shardingsphere/issues/24053#issuecomment-1447537223

   Hi @zhoubin7 
   I couldn't find the usage of SELECT INSERT in the [syntax docs](https://dev.mysql.com/doc/refman/8.0/en/select.html), only some [test cases](https://github.com/mysql/mysql-server/search?q=SELECT+INSERT) found by searching.
   Do you have relevant information to provide?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [shardingsphere] RaigorJiang commented on issue #24053: no viable alternative at input 'INSERT'

Posted by "RaigorJiang (via GitHub)" <gi...@apache.org>.
RaigorJiang commented on issue #24053:
URL: https://github.com/apache/shardingsphere/issues/24053#issuecomment-1441597137

   Even if I copy your SQL statement to the native mysql 8, it cannot be executed. Can you provide detailed information?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [shardingsphere] zhoubin7 commented on issue #24053: no viable alternative at input 'INSERT'

Posted by "zhoubin7 (via GitHub)" <gi...@apache.org>.
zhoubin7 commented on issue #24053:
URL: https://github.com/apache/shardingsphere/issues/24053#issuecomment-1422163285

   Hi @RaigorJiang 
   mysql 8.0
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [shardingsphere] RaigorJiang commented on issue #24053: no viable alternative at input 'INSERT'

Posted by "RaigorJiang (via GitHub)" <gi...@apache.org>.
RaigorJiang commented on issue #24053:
URL: https://github.com/apache/shardingsphere/issues/24053#issuecomment-1449365084

   Hi @zhoubin7 
   This issue has been fixed and you can verify it on the master branch.
   Thank you!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [shardingsphere] strongduanmu closed issue #24053: no viable alternative at input 'INSERT'

Posted by "strongduanmu (via GitHub)" <gi...@apache.org>.
strongduanmu closed issue #24053: no viable alternative at input 'INSERT'
URL: https://github.com/apache/shardingsphere/issues/24053


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org