Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Perl Access Database

by cforde (Monk)
on May 23, 2001 at 02:59 UTC ( [id://82426]=note: print w/replies, xml ) Need Help??


in reply to Perl Access Database

Lynn, you should understand the data model before you start writing an application that references the data. Talk to the Data Administrator on why those columns are defined as they are; there should be a good reason for the definitions being used. Ideally, these definitions would be in a document somewhere you can easily get at. This document should include the data type definitions and the referential contraints (the rules on how the data in one table affects the data in another table). If you start messing about with the data before you understand what is allowed and what isn't, you will cause yourself unnecessary grief.

Unless there is a very good reason to do otherwise, columns should be defined as NOT NULL (as in your case). Allowing NULLs permits sloppy data management which should be discouraged. Too often, NULL is abused to mean "default value" or "I don't know yet" or "the programmer missed that one" or "the customer didn"t answer that question" or ... There have been harsh words exchanged over what NULL really means. For now, just understand that they should be avoided unless you have an excellent reason for using them. And maybe not even then.

ps. did you remove the error checking after the SQL calls?

Have fun,
Carl Forde

Replies are listed 'Best First'.
Re: Re: Perl Access Database
by Anonymous Monk on May 24, 2001 at 17:34 UTC
    Thank you for your reply. I also created the database and what I know about Access is even less than what I know about Perl. The fields that are probably giving me problems are text fields. The numeric fields are related radio buttons. Remove error checking? Not even sure I included error checking. I'm also missing a die statement incase it doesn't post to the database. That alone would have saved me hours. I should have visited here weeks ago. Lynn

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://82426]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2024-04-20 00:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found