Jump to Navigation
Home

Languages

  • English

Login

Search form

  • About us
  • Services
  • Tools
  • Resources
  • Download

Sequence

MySQL hints

Mon, 2010-03-15 13:38 — oli

Table of Contents

  • Result set with temporary sequence
  • Determination of optimal length of prefixed indexes
  • Using MySQL keywords in table or columm names
  • Missing Primary Key Index
  • Problems while installing a MySQL 5.5 database
  • InnoDB AUTO_INCREMENT at 2nd position

Result set with temporary sequence

Sometimes you would like to have a result set with something like a rownum. You can do this at least in the following two ways:

a) with a TEMPORARY MEMORY table:

CREATE TEMPORARY TABLE mem (
    seq  INT NOT NULL …
tags: 
mysql
migration
innodb
hint
primary key
index
prefixed index
sequence
temporary
keyword
auto_increment
memory table
  • Read more about MySQL hints
Subscribe to RSS - Sequence
  • About us

    • News
    • About FromDual
    • Contact
    • Partner
    • References
    • Newsletter
    • Press
  • Services

    • Consulting
    • Support
      • MySQL
      • DB Development
    • Remote-DBA
    • Training
      • Training Modules
      • Class Schedule
      • for Developer
      • for Administrators
      • Galera Cluster
  • Tools

    • Performance Monitor
    • Ops Center
    • MyEnv
    • SQL Formatter
    • Database Health Check
    • Performance Tuning Key
    • Consulting tools
    • MySQL Configuration
  • Resources

    • Blog
    • Forum
    • Presentations
  • Download

  • Recent content

Trademarks

RSS LinkedIn X / Twitter Xing Facebook Flickr Google+ twitter

MySQL, InnoDB and Oracle are registered trademarks of Oracle Corp. MariaDB is a trademark of Monty Program AB. All other trademarks are property of their respective owners. Other product or company names mentioned may be trademarks or trade names of their respective owner.