/* Table Structure * * DROP TABLE IF EXISTS ' noid '; CREATE TABLE IF not EXISTS ' noid ' ( ' PK ' VARCHAR not NULL COMMENT ' string primary key ', ' Name ' VARCHAR not NULL, ' Add ' VARCHAR not NULL, PRIMARY KEY (' PK ') ) Engine=innodb; /* Test data, the same test data as the previous example, except that the primary key becomes a string form */ INSERT into ' noid ' (' PK ', ' name ', ' Add ') VALUES (' A ', ' abc ', ' 123 '), (' B ', ' abc ', ' 123 '), (' C ', ' abc ', "321"), (' d ', ' abc ', "123"), (' e ', ' xzy ', ' 123 '), (' f ', ' xzy ', ' 456 '), (' G ', ' Xzy ', ' 456 '), (' h ', ' xzy ', ' 456 '), (' I ', ' xzy ', ' 789 '), (' J ', ' Xzy ', ' 987 '), (' K ', ' xzy ', ' 789 '), (' l ', ' Ijk ', ' 147 '), (' m ', ' Ijk ', ' 147 '), (' n ', ' Ijk ', ' 852 '), (' O ', ' opq ', ' 852 '), (' P ', ' opq ', ' 963 '), (' Q ', ' Opq ', ' 741 '), (' R ', ' TPK ', ' 741 '), (' s ', ' tpk ', ' 963 '), (' t ', ' tpk ', ' 963 '), (' u ', ' wer ', ' 546 '), (' V ', ' Wer ', ' 546 '), (' W ', ' Once ', ' 546 '); SELECT * from ' noid '; +----+------+-----+ | PK | name | Add | +----+------+-----+ | A | ABC | 123 | | B | ABC | 123 | | C | ABC | 321 | | D | ABC | 123 | | e | Xzy | 123 | | f | Xzy | 456 | | G | Xzy | 456 | | H | Xzy | 456 | | I | Xzy | 789 | | J | Xzy | 987 | | K | Xzy | 789 | | l | Ijk | 147 | | m | Ijk | 147 | | n | Ijk | 852 | | o | OPQ | 852 | | P | OPQ | 963 | | Q | OPQ | 741 | | R | TPK | 741 | | s | TPK | 963 | | T | TPK | 963 | | u | Wer | 546 | | V | Wer | 546 | | W | Once | 546 | +----+------+-----+ Rows in Set (0.00 sec) |