One way you can accomplish this is to have a default value inserted into the database column when the row is created. You would want to use something that is unique and then when you are doing the search, you can search for this value.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.