I thought the whole point of "not null" is to prevent records from being inserted w/o missing key information. The default is to allow nulls to be inserted into the record. I'm looking for the opposite effect.
Here's my problem:
Create table my_table ( ... locationid int not null);
When I execute the above, mysql automatically assigns a default value of 0. therefore, locationid can never be null!
What is going on?
I have a form which searches for a customers' last name in a table. The result of the search goes to a datagrid control. How do I retrieve the value of the bound column (i.e. customerid)? The bookmark property only returns the absolute position of the record.
I have an access 2000 form linked to several mysql tables. These tables have auto increment fields (int,11). However, these auto increment fields do not behave like the access autonumber field. In my bound form, the auto id field will not provide a unique number to the user nor to the child...
I have an access 2000 form linked to several mysql tables. These tables have auto increment fields (int,11). However, these auto increment fields do not behave like the access autonumber field. In my bound form, the auto id field will not provide a unique number to the user nor to the child...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.