Von MySQL vorreservierte Wörter
Hier sind alle Wörter (insgesamt 251) aufgelistet, die nicht als Datenbank, Tabellen und Spaltenname auftreten dürfen.Einige Wörter sind in MySQL reserviert und stehen für bestimmte Funktionen oder Attribute in MySQL. Würde man nun eine Datenbank, eine Tabelle oder eine Spalte so nennen, würde MySQL absolut durcheinander kommen. Deswegen sind einige Wörter verboten.
Zudem werden diese Wörter bei einer Volltext-Suche mit match against nicht beachtet, sozusagen übersprungen.
Und hier sind sie alle 251:
| Code: |
action
add after aggregate all alter analyze and as asc avg avg_row_length auto_increment bdb berkeleydb between bigint bit binary blob bool both by cascade case change char character check checksum column columns comment constraint create cross current_date current_time current_timestamp data database databases datetime day day_hour day_minute day_second dayofmonth dayofweek dayofyear dec decimal default delayed delay_key_write delete desc describe distinct distinctrow double drop else enclosed end enum escape escaped exists explain fields file first float float4 float8 flush for foreign from full fulltext function global grant grants group having heap high_priority hour hour_minute hour_second hosts identified if ignore in index infile inner innodb insert insert_id int integer interval int1 int2 int3 int4 int8 into is isam join key keys kill last_insert_id leading left length like limit lines load local lock logs long longblob longtext low_priority master_log_seq master_server_id match max max_rows mediumblob mediumint mediumtext middleint min_rows minute minute_second modify month monthname mrg_myisam myisam natural no not null numeric on optimize option optionally or order outer outfile pack_keys partial password precision primary procedure process processlist privileges purge read real references regexp reload rename replace require restrict returns revoke right rlike row rows second select set show shutdown smallint soname sql_auto_is_null sql_big_result sql_big_selects sql_big_tables sql_buffer_result sql_calc_found_rows sql_log_bin sql_log_off sql_log_update sql_low_priority_updates sql_max_join_size sql_quote_show_create sql_safe_updates sql_select_limit sql_slave_skip_counter sql_small_result sql_warnings ssl starting straight_join string striped table tables temporary terminated text then time timestamp tinyblob tinyint tinytext to trailing type union unique unlock unsigned update usage use using values varbinary varchar variables varying when where with write year year_month zerofill |
Geschrieben von LLCoolDannY am 18.06.2004 (4659x gelesen)

Nützlich, nur ganz schön lang :D
Geschrieben von Phil Marx
Ja aber es ist sehr nützlich :)
Geschrieben von LLCoolDannY
jap, is nützlich...
vorallem wenn man das Alter speichern will, und die Spalte alter nennt, und erst nach 3 Tagen darauf kommt, dass da nix eingefügt wird, weil alter ja von MySQL reserviert is XD
vorallem wenn man das Alter speichern will, und die Spalte alter nennt, und erst nach 3 Tagen darauf kommt, dass da nix eingefügt wird, weil alter ja von MySQL reserviert is XD
Geschrieben von michi
Genau das Problem hatte ich bei einem anderen Projekt auch :D
Geschrieben von Phil Marx
