Jump to content

Sql Den Anlayan Varmı Hata Verdi


Recommended Posts

Hata

SQL sorgusu:

## MySQL dump

## ---------------------------------------

## Created: 18/08/2007 13:18:50

## Database: haber34

## Table: fatura_bilgileri

## ---------------------------------------

CREATE TABLE `fatura_bilgileri` (

`id` int( 11 ) NOT NULL AUTO_INCREMENT ,

`kullanici_id` int( 11 ) NOT NULL default '0',

`isim_sirket` varchar( 150 ) NOT NULL default '',

`fatura_adresi` varchar( 255 ) NOT NULL default '',

`vergi_dairesi` varchar( 20 ) NOT NULL default '',

`vergi_no` varchar( 10 ) NOT NULL default '',

`dergi_adedi` int( 7 ) NOT NULL default '0',

UNIQUE KEY `kullanici_id` ( `kullanici_id` ) ,

UNIQUE KEY `id` ( `id` )

) TYPE = MYISAM COMMENT = 'Fatura Bilgileri'## ---------------------------------------

INSERT INTO `fatura_bilgileri` ( `id` , `kullanici_id` , `isim_sirket` , `fatura_adresi` , `vergi_dairesi` , `vergi_no` , `dergi_adedi` )

VALUES (

'1', '9', '', '', '', '', '0'

)

MySQL çıktısı:

#1064 - 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 '## MySQL dump

## ---------------------------------------

## Created: 18/0' at line 1

burda hata verdi acaba bilen varmı yardım

Link to comment
Share on other sites

CREATE TABLE `fatura_bilgileri` (

`id` int( 11 ) NOT NULL AUTO_INCREMENT ,

`kullanici_id` int( 11 ) NOT NULL default '0',

`isim_sirket` varchar( 150 ) NOT NULL default '',

`fatura_adresi` varchar( 255 ) NOT NULL default '',

`vergi_dairesi` varchar( 20 ) NOT NULL default '',

`vergi_no` varchar( 10 ) NOT NULL default '',

`dergi_adedi` int( 7 ) NOT NULL default '0',

UNIQUE KEY `kullanici_id` ( `kullanici_id` ) ,

UNIQUE KEY `id` ( `id` )

) TYPE = MYISAM COMMENT = 'Fatura Bilgileri';

INSERT INTO `fatura_bilgileri` ( `id` , `kullanici_id` , `isim_sirket` , `fatura_adresi` ,

`vergi_dairesi` , `vergi_no` , `dergi_adedi` )

VALUES (

'1', '9', '', '', '', '', '0'

);

noktalı virgülü unutmuşsun. :shiftyninja:

Link to comment
Share on other sites

) TYPE = MYISAM COMMENT = 'Fatura Bilgileri'## --------------------------------------- 
INSERT INTO `fatura_bilgileri` ( `id` , `kullanici_id` , `isim_sirket` , `fatura_adresi` , `vergi_dairesi` , `vergi_no` , `dergi_adedi` )
VALUES (
'1', '9', '', '', '', '', '0'
)[/CODE]

burayı

[CODE]TYPE = MYISAM COMMENT = 'Fatura Bilgileri'
INSERT INTO `fatura_bilgileri` ( `id` , `kullanici_id` , `isim_sirket` , `fatura_adresi` , `vergi_dairesi` , `vergi_no` , `dergi_adedi` )
VALUES ('1', '9', '', '', '', '', '0')[/CODE]

böyle yap :shiftyninja:

Link to comment
Share on other sites

SQL sorgusu:

MySQL dumpCreated :18 /08 /200713 :18 :50 DATABASE : haber34 TABLE : fatura_bilgileri CREATE TABLE 'fatura_bilgileri'

MySQL çıktısı:

#1064 - 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 'MySQL dump

Created: 18/08/2007 13:18:50

Database: haber34

Table: fatu' at line 1

şimdide bu hatayı verdi

Link to comment
Share on other sites

tüm kodları versen daha çabuk hallolurdu.parça parça olmuyo.sql dump dosyasındaki tüm kodları bi yazsana.

çalışan kod aşağıda localde denedim çalışıyo php 5.2.6(phpmyadmin 2.10.3)

CREATE TABLE `fatura_bilgileri` (

`id` int( 11 ) NOT NULL AUTO_INCREMENT ,

`kullanici_id` int( 11 ) NOT NULL default '0',

`isim_sirket` varchar( 150 ) NOT NULL default '',

`fatura_adresi` varchar( 255 ) NOT NULL default '',

`vergi_dairesi` varchar( 20 ) NOT NULL default '',

`vergi_no` varchar( 10 ) NOT NULL default '',

`dergi_adedi` int( 7 ) NOT NULL default '0',

UNIQUE KEY `kullanici_id` ( `kullanici_id` ) ,

UNIQUE KEY `id` ( `id` )

) TYPE = MYISAM COMMENT = 'Fatura Bilgileri';

INSERT INTO `fatura_bilgileri` ( `id` , `kullanici_id` , `isim_sirket` , `fatura_adresi` ,

`vergi_dairesi` , `vergi_no` , `dergi_adedi` )

VALUES (

'1', '9', '', '', '', '', '0'

);

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...