Maurice Posted January 28, 2007 Share Posted January 28, 2007 Hi all,just one small question. How can I block MySQL from inserting empty records in a table?Thanks very much. Maurice Link to comment Share on other sites More sharing options...
Skemcin Posted January 29, 2007 Share Posted January 29, 2007 a combination of client side and server side scripting with required fields, etc.just define some rules that you want for your data and make sure the application follows them.use "transaction" calls to ensure you do not create orphaned records too. Link to comment Share on other sites More sharing options...
xpriens Posted January 31, 2007 Share Posted January 31, 2007 u can also add constraints to ur Db for not allowing 'Null Values',.....i.e u cannot enter any black details in the required columns...... Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now