• 28-02-2009, 02:26:30
    #1
    arkadaşlar oluşturduğum formu kaydet dediğimde

    You have an error in your SQL syntax; check the manual that corresponds to your  MySQL server version for the right syntax to use near 'not  (not_sinifi,not_adi,not_sinavi,not_notu) values ('2', '11', '3', '77')' at line  1
    şeklinde hata alıyorum sizce nedendir?
  • 28-02-2009, 02:34:03
    #2
    database adın nedir birde o hata veren satırı komple yazarsan daha çok yardımcı olur herkez.
  • 28-02-2009, 02:38:13
    #3
    byfobi adlı üyeden alıntı: mesajı görüntüle
    database adın nedir birde o hata veren satırı komple yazarsan daha çok yardımcı olur herkez.
    Tablo yapısı
    CREATE TABLE IF NOT EXISTS `not` (
      `not_id` int(11) NOT NULL auto_increment,
      `not_sinifi` text collate utf8_turkish_ci NOT NULL,
      `not_adi` text collate utf8_turkish_ci NOT NULL,
      `not_sinavi` text collate utf8_turkish_ci NOT NULL,
      `not_notu` text collate utf8_turkish_ci NOT NULL,
      PRIMARY KEY  (`not_id`)
    ) ENGINE=MyISAM
    Hata veren kod kısmı

    $sorgu = "insert into not (not_sinifi,not_adi,not_sinavi,not_notu) values ('$sinif', '$ogrenci', '$sinav', '$not')";
  • 28-02-2009, 02:49:58
    #4
    Üyeliği durduruldu
    tablo adını değiştir. not mysql in kendine ayırdığı bir kelime. (aka: reserved words)
  • 28-02-2009, 03:04:36
    #5
    Kimlik doğrulama veya yönetimden onay bekliyor.
    uykusuzluk yüzünden sildim. sanırım yatma vakti
  • 28-02-2009, 03:26:08
    #6
    MC_delta_T adlı üyeden alıntı: mesajı görüntüle
    tablo adını değiştir. not mysql in kendine ayırdığı bir kelime. (aka: reserved words)
    abi teşekkür ederim oldu wallaha mysqlin baska kendine ayırdıgı kelime var mı? bunları nasıl bulabilirim
  • 28-02-2009, 03:33:57
    #7
    Üyeliği durduruldu
    Ozcan_SARICA adlı üyeden alıntı: mesajı görüntüle
    abi teşekkür ederim oldu wallaha mysqlin baska kendine ayırdıgı kelime var mı? bunları nasıl bulabilirim
    bi sürü var.

    MySQL :: MySQL 5.1 Reference Manual :: 8.3 Reserved Words
  • 28-02-2009, 03:53:11
    #8
    Üyeliği durduruldu
    ozcan_sarica adlı üyeden alıntı: mesajı görüntüle
    abi teşekkür ederim oldu wallaha mysqlin baska kendine ayırdıgı kelime var mı? Bunları nasıl bulabilirim
    accessible add all
    alter analyze and
    as asc asensitive
    before between bigint
    binary blob both
    by call cascade
    case change char
    character check collate
    column condition constraint
    continue convert create
    cross current_date current_time
    current_timestamp current_user cursor
    database databases day_hour
    day_microsecond day_minute day_second
    dec decimal declare
    default delayed delete
    desc describe deterministic
    distinct distinctrow div
    double drop dual
    each else elseif
    enclosed escaped exists
    exit explain false
    fetch float float4
    float8 for force
    foreign from fulltext
    grant group having
    high_priority hour_microsecond hour_minute
    hour_second if ignore
    in index infile
    inner inout insensitive
    insert int int1
    int2 int3 int4
    int8 integer interval
    into is iterate
    join key keys
    kill leading leave
    left like limit
    linear lines load
    localtime localtimestamp lock
    long longblob longtext
    loop low_priority master_ssl_verify_server_cert
    match mediumblob mediumint
    mediumtext middleint minute_microsecond
    minute_second mod modifies
    natural not no_write_to_binlog
    null numeric on
    optimize option optionally
    or order out
    outer outfile precision
    primary procedure purge
    range read reads
    read_write real references
    regexp release rename
    repeat replace require
    restrict return revoke
    right rlike schema
    schemas second_microsecond select
    sensitive separator set
    show smallint spatial
    specific sql sqlexception
    sqlstate sqlwarning sql_big_result
    sql_calc_found_rows sql_small_result ssl
    starting straight_join table
    terminated then tinyblob
    tinyint tinytext to
    trailing trigger true
    undo union unique
    unlock unsigned update
    usage use using
    utc_date utc_time utc_timestamp
    values varbinary varchar
    varcharacter varying when
    where while with
    write xor year_month
    zerofill

    225 Tane.
  • 28-02-2009, 09:14:18
    #9
    Üyeliği durduruldu
    MC_delta_T adlı üyeden alıntı: mesajı görüntüle
    tablo adını değiştir. not mysql in kendine ayırdığı bir kelime. (aka: reserved words)
    bi dip not eklemiş olayim. alanlarınızın başına standart bir kelime eklerseniz ömür boyu rahat edersiniz

    ben mesela fld kelimesi ekliyorum. öncelerinde bende not (değil, nat) olabilecegini düşünmeden ayni sorunu yaşamıştım