how to run the python script from the mysql query?

后端 未结 1 946
青春惊慌失措
青春惊慌失措 2021-01-21 06:53

I have a desire to call the python script from the mysql query.

like we call the procedure in mysql : call procedurename();

just like as above is there any way i

相关标签:
1条回答
  • 2021-01-21 07:35

    This does not seem to be possible in MySQL, for security reasons. You can have a look at this related question Executing shell command from MySQL. You can however do this in other database like oracle. In Postgresql there is also support to create python stored procedures in the database. You could use this technique to have your database triggers run python code.

    0 讨论(0)
提交回复
热议问题