What's a good method to create a primarykey ( not using autoincrement )

Hi all,
I 'd like to know if somebody knows a good and simple method to generate a unique primarykey.
I don't want to use the autoincrement feature of DBMS and avoid using GUID ( it's a too long value).
Any suggestion ?
Cheers.
Stefano

gnunix wrote:
I'm wondering why someone would want to implement auto increment on their table? As I understand this, the way it is implemented in other databases is not standard, so your code wouldn't be portable.Agreed! I've always said that a database is only good for 3 things:
1. Storing data
2. Relating data
3. Searching data
I'm working on a project now where I'm trying to get the value of the auto increment field after the update occurs. I want the value of the field to be returned to me so that I can select the record back from the database to display this information on a confirmation page. This is turning out to be a nightmare to get this to work properly using the Statement.getGeneratedKeys(). I am sure this is so difficult because of my relative inexperience with JDBC.No, it's just the wrong approach. You should (in my opinoin) generate the key before you insert.
I am curious about this GUID thing your all talking about. It's simply a unique identifier. It's guaranteed that every GUID generated will be unique.
I did a google search on this and am faced with a wall of results that have little to do with what I imagine this is. Is GUID some sort of auto generated (app side) number that can be inserted into the database that is unique? If so, it sounds like just the solution I would be looking for to completely forget about generating these unique numbers database side. http://en.wikipedia.org/wiki/Globally_Unique_Identifier
And yes, the GUID is by far the best solution we have at the moment.
Edited by: wpafbuser1 on Mar 19, 2008 2:38 PM

Similar Messages

  • What is a good app to create a storytelling video?

    what is a good app to create a storytelling video?

    Are you looking to make a video made of photos with a voiceover?
    Hugh

  • What is the Best was to create a newsletter application using BEA / Documen

    Hi,
    I have some queries.
    What is the Best was to create a newsletter application using BEA / Documentum
    The newsletter will be republished and users will see new content every month. We plan to use BEA portal 8.1 sp3 with Documentum 5.3Sp1 / SCS.
    The content of newsletter may be coming from data sources, we will combine this content plus some static content, and publish to Documentum using BEA's CM SPI implementation for Documentum. To connect to different data sources we will use registered table feature of Documentum. Anybody can suggest the best to achieve this or any suggestion or any samples....
    How can we create our custom portlets which can use Documentum registered table feature to connect to data sources.
    Thanks for the help,
    Sudhir

    I assume that you are thinking about using the 'n" wireless version of the AirPort Express, or the "new" dual band AirPort Express.
    Simply connect each Express one at a time via Ethernet back to the Ethernet switch and use AirPort Setup to configure the device. Other than entering a device name for each Express, AirPort Setup will do everything else for you automatically. You will be amazed at how easy this will be.
    I do not want to use the "Extend Range" feature, as it trys to link the express back to the extreme via wireless.
    Sounds like you might be a bit confused here. When AirPort Setup recognizes that the Express is connected via Ethernet, it will configure the Express to "extend" using an Ethernet connection....not wireless.
    In other words, Apple devices can "extend" using wireless or Ethernet connections. AirPort Setup analyzes the connection and chooses the correct settings for you.
    If you later go back in and check the settings for the Express using AirPort Utility, you will see that it has actually been set up to "create" a wireless network using the same wireless network name, same security and same password as the main router. The Express will also be in Bridge Mode to work correctly on the network.

  • What are required feilds values for creating a sales order using va01?

    What are required feilds values for creating a sales order using va01?
    Please give examples if possible.

    Hi,
    go through this URL:
    <a href="http://web.mit.edu/cao/www/SB2002/CR/VA01.htm">http://web.mit.edu/cao/www/SB2002/CR/VA01.htm</a>
    Hope this will help you.
    Thanks
    Shiva

  • What is a good none muffled iphone 4s bluetooth to use?

    what is a good none muffled iphone 4s bluetooth to use?

    bluetooth headsets comes in 2 flavours
    the phone call only headset a somewhat plastic stick people have our of their ear
    this use the bluetooth profile CTP
    then there is a the stereo a2dp headset which play all audio and also do calls
    never come across any which sounded muffled though but only use a2dp ones

  • What is the best method for creating a simple DVD from X?

    Now that I no longer have DVD SP on my system, I need to know the preferred method of creating a simple menu driven DVD. The DVD needs to have a simple (one click) since the local cable company needs that so it will trigger at a specified time. I shoot in 720p 60. The DVD is SD. I do have Toast, Compressor, and iDVD on the computer. Any input will really be appreciated. Thanks in advance.
    Cheers.
    Tom

    Thanks Luis.
    Can't beleive I missed that. I am so used to using Compressor or Toast. This method works great. Thanks.
    Best.
    Tom

  • What is the point in this "BScatalyst" if can not use your own domain name?!

    the marketing of adobe BScatalyst is a enigma for me. What is it? when you can´t use your domain name?!

    I think you need to do a lot of research and a lot of reading.
    The point is: adobe has NOTHING TO OFFER besides the software (muse) for
    developing a site.
    Sorry to repeat this a lot but your not correct here as well.
    Muse came recently and is a simple tool to help get people into making sites from the graphics and design industry basically. BC Has a full template, layout and code system:
    http://docs.businesscatalyst.com/dev-assets/reference#!/module-reference/photo-galleries/m odule_photogallery.html
    It has API Access, it can be developed using any coding software from Dreamweaver to Coda 2. This for many is the primary method of creating BC websites and has been for years, even before Adobe purchased the BC company.
    It is always being updated as you can see with the new rendering engine and liquid markup:
    http://www.businesscatalyst.com/bc-blog
    The point is the CC atracts amatures, like my self, to devope sites, but
    they have NOTHING to offer on the hosting side of the work.
    Sorry, but none of this is correct. CC is a service created by Adobe to take all its software into the cloud, it is not just there to develop sites. In terms of storing your work in the cloud that is one of its primary functions. Ignoring BC and websites you can store your files, PSD's through your Creative Cloud account.
    Your post was put under moderation automatically by the forum software because how you posted it. The caps will do it.
    everything above here are without ANY interest for the common amateur muse developer. Why do you think we use muse?!
    I communicate, I read and know a lot of Muse developers, Again your not correct here as well. Sorry for repeating this but this again simply not true and pretty much everything you have said so far is that.
    A lot of Muse users develop very nice looking but basic in function websites, there are a lot who would like to do more such as eCommerce etc, you are not the norm in your thinking off what everything is from CC, BC and the web.
    CMS me here, SAAS me there, and business analysis me over again. IT IS OF NO INTEREST FOR US MILLIONS OF MUSE USERS!
    Again, this is not true. Most of the posts I see from Muse users is how they do more with BC and many want and ask how to upgrade their CC BC to offer more features. The Creative Cloud version of BC is the VERY BASIC version of it, it does not have most of the abilities it has if you have one of the higher plans.
    See here:
    US Yearly Pricing | Adobe Business Catalyst
    A complementary product to Muse is HOSTING!
    Creative Cloud is Adobe moving into the Cloud space for their products and services, Muse is an entry level designer based peace of software to create basic websites. Business Catalayst is what you do not want to research into and hosting is just storage basically.
    Adobe Business Catalyst
    In terms of your website, people make sites just for family etc and put them on the web, Real domain or not you can build a site for what ever you want. But its a website and will be out there on the web. Search engines like google will index such sites so if you do not want them out there on the internet do not create them to make them available.
    I do not mean to be rude, but your comments are not valid and going no where. You not really understanding what anything is, your complaining about things are not true or things that you think do not exist when they do.
    I have been developing sites on the Business Catalyst platform for over 5 years and using other coding platforms and other CMS's for longer then that. I am considered one of the people outside BC who know the platform for the most so please trust in what I am saying here.
    If you want just hosting just use Creative Cloud or something like dropbox.
    If you want to learn more about the web or building sites etc I suggest you go lean, there are many great resources out there.

  • Can you create a form not using a php script?

    I need to create a contact us form on my website using DW and have researched how and understand the easiest way is using a php script.  Unfortuntately, my webhost server does not support this and will charge me an arm and a leg in order to to do it.  Is there another way to have a functioning contact form not using a php script?

    Yes and no.
    You could use a mailto link for your form action instead of a PHP script.
    There are several problems with this method though. First, when you do that, you are at the mercy of the viewer's computer set-up. Mailto links use whatever email client is installed on the machine in order to send the message. Public computers (libraries, colleges, etc) almost never have an email client installed, so when a viewer on one of those machines clicks the link, nothing happens. Secondly, your email address is open for spam harvesters, so you may end up with enlargement and nigerian scam emails flooding your inbox.
    Since your provider doesn't give you a way to do it the right way on your server, you may want to look into email form services online and see if they are less expensive than your current alternative.

  • The timekeeping system we use does not like HTML 5 so what is the latest version of Firefox that does not use HTML 5?

    We have been told by our timekeeping system provider that the latest versions of FireFox, Chrome and IE are not compatible with their websites at this time. I was told that it was because of the use of HTML 5 by the more recent versions of these web browsers. I need to download the most recent version of FireFox that does not use HTML 5. Can anyone tell me which version this would be?

    It isn't "Timesheet Next Generation", is it? We had a thread on that here: [https://support.mozilla.org/questions/961306 Websites using php and mysql stopped sorting drop down lists properly starting last week. Did something change?]
    Unfortunately, HTML5 is a large specification with a lot of parts that has been implemented in pieces over the course of several years. It would be really helpful if your vendor could indicate what EXACTLY is not compatible and then it could be researched. Otherwise, you'd have to use trial and error. Either way, you would end up with an older browser that isn't safe to run on the internet. It could be time to consider other vendors...

  • What is an efficient method to create presets?

    Hello all,
    I am trying to create presets for my VI and I would like some input from others who've created methods for presets.  I saw this post and saw that it was possible to create a pre defined preset fairly easily.  That's good an all, but I need to update my presets on the fly.  Basically, I want to move four servos to a certain position via pulsewidth.  However, there will be many different positions (~20) I need them to be at, and trying to stop the code and put in constants seems like it will be extremely time consuming for each preset.  I would like to create a preset method which would take the servo location and store it somewhere so I can load it again later.  
    One idea I had was to create a txt file and store the pulsewidth of each servo.  This way I could overwrite the file and read the file at any time.  
    I have been looking into event structures, but that seems like it will go with the idea of making pre made presets.
    Any help would be gladly appreciated.
    Thanks,
    Matt
    Solved!
    Go to Solution.

    If you merely have 20 positions, which will never change, you can use an Enum control wired to a case structure (all of this in a while loop).  If the Enum control value changes, select the case structure which contains the correct pulswidth values.  
    If your positions could change overtime, an external file would be a good way to go.  Look at Configuration Files.  You can write one section for each position.  In each section, you will store the 4 pulsewidth values you need.

  • What is the proper method for creating a document with double spacing?

    There was a questioned posed regarding double spacing documents and it was suggested to set the leading to twice that of the font size.  Is this how "double spacing" is defined?

    Double-spacing is a concept traditionally used in word processing. In professional page layout, as you would use it in InDesign, the space between lines is called "leading" and refers to finer increments than word processing (Word's Single, 1.5 lines, Double, etc.) It is measured in units called "points." There are 12 points in an inch.
    In most professionally laid out publications, body copy of average column width is set with 1 to 4 points of space beyond the point size of the type. If the type size were 11 point, the leading might be set as between 12 and 15 points, depending on how much space you desired between lines.
    Why don't you tell us what is you're trying to accomplish, and perhaps attach a screen capture of what you're trying to do?

  • What's a good MIDP 2.0 implementation? Not Nokia 6600!

    Hi All,
    My company is developing an mobile application that connects to a server over HTTP... Nothing new. But we need the features of MIDP 2.0 and MMAPI because we take photos of items and upload these to the server, as well as some CustomItem for displaying these in a grid-like format.
    The only one matching this profile (according to http://jal.sun.com/webapps/device/device?api=61) is the Nokia 6600. So we brought one. Unfortunately, it has a lot of bugs which make us unable to use these features. CustomItems don't display on the screen until they are forced to refresh (by moving over them, etc.) Changing Forms (using setDisplay) causes the app to 'randomly' crash. The ChoiceItem as type POPUP doesn't respond to the change event so they are practicly useless. To work around these we had to make a CustomForm class which recorded the state of the current form & cleared it as a new form for use by another 'screen'. Change the popups into opening another form for selection.
    We also had to make the camera capture as a Form item (to prevent changing Displayables and causing random crashes). But the picture about to be taken would only update if you moved the cursor right or left (suprisingly up & down didn't do anything).
    In the end it basically became unusable because of all these changes & work-a-rounds just to avoid the bugs in the implementation. Nokia weren't of much help either!
    I really like the MIDP 2.0 profile, Sun's SDK is excellent, and was very quick & easy to get used too. So since a lot of the code already exists in J2ME and our server side is also J2EE, I would like to continue developement in this environment.
    So I guess the purpose of writing this message is two-fold... 1) If you are thinking of serious MIDP 2.0 developement, don't use the 6600 and 2) Can anyone please tell me if there is a decent implementation of MIDP 2.0 & MMAPI out on the market? We really need to know as we don't want to go to other alternatives (like Microsoft) but we will if there are no other choices....
    Thanks in advance for any help at all.

    Hi, What I am providing is not really a solution to your problems.
    In fact I am asking questions, currently I want to do the same thing as you i.e. uploading and downloading medias files to and from a Server, therefore my questions are:
    -Can You access the default media files folders (Image, sounds and videos) ?
    -Is it in these folders that you store the downloaded media files ? or are you obliged to store them elsewhere (RMS in particular ).
    I am currently using Symbian C++ as developing langage but if I could move to Java It would be great because It's too hard to master symbian C++ (every thing is a nightmare...).
    Thanks in advance for your anwser
    Have a nine day

  • What is the best way to create a multilingual site using adobe Muse?

    hello, inside Muse its ok with linking the menus to the different language sites, BUT if my site in german have 20 pages and i have to made the tablett and sphone version, will this be to heavy for Muse ? (of course the images will be optimised to the best size)… OR when i make a different muse document in english and upload it in a subdirectory on my hosting, how must the name of this english site of my german be? and how can i link them ?
    Thanks for help and comments, jc

    For me, as a noob, It's all about creative problem solving.
    For lots of stuff, there's no right or wrong solution, but you have
    to figure things out on your own. I, too, have built sites from the
    ground up, and then rebuilt them even better. It's the only way to
    really learn it well. Books, online forums, help docs all sort of
    help, but it all comes down to how innovative you can be with
    integrating them all into a site that is completely yours.
    This might save you loads of headaches: avoid using scenes,
    unless you are doing only animation. Keep each of your 'pages' on
    their own keyframe, and use 'gotoAndStop' to navigate through them.
    This is perhaps the easiest way to create a website quickly.
    P

  • What is a good game controller for mountain Lion to use on a mac

    Hello everyone, I like playing games on my mac. But I don't like using my mouse. Is there a good game controller out there, that can be use on Mountain Lion. I have tried using a PS3 with gamepad companion, which don't work. So if anyone is using a nice game controller on their mac, Please let me know. Thank you

    HI,
    Well,
    I will thank you for the Points.
    I will offer this search  (using game controllers in Mountain Lion)
    Your own (this) thread gets listed.
    8:22 PM      Sunday; September 23, 2012
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
      iMac 2.5Ghz 5i 2011 (Mountain Lion 10.8.2)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and and iPad
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • I HAVE MANY OLD SLIDES FROM MY FAMILY,WHAT IS A GOOD 35MM SLIDE  SCANNER  THAT CAN BE USE WITH MY MACBOOK PRO?

    Hi,
    Can anyone recommend a scanner or other device for old family slides that must converted in a digital format  and saved in a DVD and external hard drive?
    Thanks
    Wandafromqc

    Don't even think about scanning thousands of slides yourself. If you have 5000 family slides, it's overwhelmingly likely that just 500 of them will give a highly effective representation of the whole collection, and will include not only all of the best ones but many of the second-best ones too. Scanning them all, or even half of them, will consume your entire summer and would probably give you and your sibs a lot more pictures than any of you really wants to keep.
    It used to be true that scanning slides halfway decently required an expensive dedicated film scanner -- consumer flatbed scanners just weren't up to the task. That's no longer true. I have an under-$200 Epson Perfection V500 Photo flatbed scanner that outperforms the $2000+ Nikon film scanner I've had for 9 years in slide and negative scanning, and the software that came with it enables me to scan several (6 if I remember right) slides at once and automatically saves them as separate image files. That makes it much faster to use than the film scanner, and of course I can also use it for scanning flat reflective material, such as the more than 1000 old photographic prints and post cards I've digitized for my local historical society. The film scanner couldn't have done any of that.

Maybe you are looking for

  • How do i remove the printhead on hp 1600xi all in one printer?

    I keep getting the message remove and check cartridge on the display of my hp 1600xi all in one printer. I've replaced the ink cartridges. Turned it off, and on. Unplugged it, and plugged it back in. I still get that message. The only other thing tha

  • How to read the data from a PDF document into SAP

    Hi Everyone, I am trying to read a PDF document from my desktop and get the data into SAP but i am not getting successful. I am using the method cl_gui_frontend_services=>gui_upload and passing the filename and type and importing the file length and

  • Post vendor payments f-53 need help

    i am not able to post vendor payments in F- 53 i gave discount 5% and saying to post but it is saying the difference is too large to clear? how to change the tolerance group for user? Diagnosis was to change charged difference manually by changing th

  • Restart/shutdown comps frm an attached file in mails created via java,other

    As, I have heard 'bout the invention of such attachment which when clickin' can restart/shutdown the computer tryin' to open it. I wonder if it really can be or just one of the bluffin'..... I first thought of creatin' a batch file n' sendin' it via

  • Is it possible to turn off the menu bar on secondary display?

    I have upgraded to Mavericks on an iMac used exclusively for presentations (not mirrored) and now the menu bar shows up dimmed on the presentation screen if there is not a presentation currently playing. I have not found any setting for turning off f