Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. unique random alphanumeric in MySQL

unique random alphanumeric in MySQL

Scheduled Pinned Locked Moved Database
questionmysqlcomannouncementlounge
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Jassim Rahma
    wrote on last edited by
    #1

    hi, I want to know how can I created a unique random alphanumeric PIN in MySQL? I have job_order_code field and I want everytime to set a unique random alphanumeric code? Thanks.

    Technology News @ www.JassimRahma.com

    T J 2 Replies Last reply
    0
    • J Jassim Rahma

      hi, I want to know how can I created a unique random alphanumeric PIN in MySQL? I have job_order_code field and I want everytime to set a unique random alphanumeric code? Thanks.

      Technology News @ www.JassimRahma.com

      T Offline
      T Offline
      thatraja
      wrote on last edited by
      #2

      Googled? MySql also has RAND[^] function, using that you could generate random things. Do customize.

      thatraja

      Please update this article Useful Reference Books, it's urgent for Q/A section

      1 Reply Last reply
      0
      • J Jassim Rahma

        hi, I want to know how can I created a unique random alphanumeric PIN in MySQL? I have job_order_code field and I want everytime to set a unique random alphanumeric code? Thanks.

        Technology News @ www.JassimRahma.com

        J Offline
        J Offline
        jschell
        wrote on last edited by
        #3

        Jassim Rahma wrote:

        unique random alphanumeric PIN

        Why does it need to be unique?

        J 1 Reply Last reply
        0
        • J jschell

          Jassim Rahma wrote:

          unique random alphanumeric PIN

          Why does it need to be unique?

          J Offline
          J Offline
          Jassim Rahma
          wrote on last edited by
          #4

          because it's a reservation code

          Technology News @ www.JassimRahma.com

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups