简体   繁体   中英

Passing Location details to mysql stored procedure

I have a table to stored the location details. I need to pass the latitude and longitude details to a stored procedure...

CREATE DEFINER=`root`@`localhost` PROCEDURE `MOBL_Test`(IN `id` GEOMETRY)
BEGIN

insert into test_table (location) values (id) ;


END

how i pass value to this procedure...

MySQL JDBC驱动程序不支持GEOMETRY数据类型,因此您必须在传递给JDBC驱动程序的SQL语句中使用GeomFromText

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM