aldm Posted August 17, 2009 Share Posted August 17, 2009 When I want to create this procedure: create procedure Ubaci(isbna char(13), autora char(30), naslova char(60), cijenaa float(4,2)) begin insert into knjige(isbn, autor, naslov, cijena) values(isbna, autora, naslova, cijenaa); end in mysql, it showes me error: #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 4 What's wrong? Thanks in advance Link to comment https://forums.phpfreaks.com/topic/170656-mysql-stored-procedures/ Share on other sites More sharing options...
Lyleyboy Posted August 17, 2009 Share Posted August 17, 2009 Shouldn't insert and values be in the same line? Link to comment https://forums.phpfreaks.com/topic/170656-mysql-stored-procedures/#findComment-900088 Share on other sites More sharing options...
aldm Posted August 18, 2009 Author Share Posted August 18, 2009 I tried that, but it shows me the same error again Link to comment https://forums.phpfreaks.com/topic/170656-mysql-stored-procedures/#findComment-901045 Share on other sites More sharing options...
play_ Posted August 18, 2009 Share Posted August 18, 2009 insert into knjige(isbn, autor, naslov, cijena) values('isbna', 'autora', 'naslova', 'cijenaa'); Link to comment https://forums.phpfreaks.com/topic/170656-mysql-stored-procedures/#findComment-901233 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.