jaikar Posted October 15, 2007 Share Posted October 15, 2007 Hi, whats the use of using ` quote in mysql statements? like in INSERT INTO tblname (`name`, `email`) VALUES ('names', 'emails').. while without ` quote like in this... INSERT INTO tblname (name, email) VALUES ('names', 'emails') , worked for me in older versions and not working in new mysql versions. anyone know the reason please explain. Thankyou in advance. ~J Quote Link to comment https://forums.phpfreaks.com/topic/73301-solved-using-quote-in-mysql/ Share on other sites More sharing options...
zq29 Posted October 15, 2007 Share Posted October 15, 2007 You can use reserved words as table names and fields when using backticks. Such as naming a field "date" Quote Link to comment https://forums.phpfreaks.com/topic/73301-solved-using-quote-in-mysql/#findComment-369845 Share on other sites More sharing options...
jaikar Posted October 15, 2007 Author Share Posted October 15, 2007 wow !.. you are excellent !... i named the field as primary, Thanks ! ~J Quote Link to comment https://forums.phpfreaks.com/topic/73301-solved-using-quote-in-mysql/#findComment-369873 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.