这是我试图让工作无济于事的代码:
CREATE DEFINER=`auser`@`localhost` PROCEDURE `listings_set_image`(
IN inPropertyId INT, IN inImage VARCHAR(150), IN inCaption(255))
BEGIN
INNER JOIN property_images pi
ON pi.image_id = i.image_id
UPDATE images i SET i.image_name = inImage, i.image_caption = inCaption
WHERE pi.property_id = inPropertyId;
END//
我做错了什么?