Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2 > Metin2 Private Server
You last visited: Today at 02:18

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Queriearten - Psc_log

Discussion on Queriearten - Psc_log within the Metin2 Private Server forum part of the Metin2 category.

Reply
 
Old   #1
 
.Ziadd's Avatar
 
elite*gold: 0
Join Date: Aug 2012
Posts: 155
Received Thanks: 47
Queriearten - Psc_log

Morgen epvp,

ich wollte mal fragen, wie man mit dieser Art von Querie umgeht?
-> Wie fügt man sie richtig in Navicat ein? Ist das wie bei einer Item_Proto?

PHP Code:
CREATE TABLE `psc_log` (
`
idint(11NOT NULL AUTO_INCREMENT,
`
account_idint(11NOT NULL,
`
admin_idint(11) DEFAULT NULL,
`
card_typevarchar(20NOT NULL,
`
waehrungvarchar(10NOT NULL,
`
psc_codevarchar(50CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`
psc_betragdecimal(5,2NOT NULL,
`
psc_passvarchar(20CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`
statusint(1NOT NULL,
`
kommentarvarchar(200NOT NULL,
`
datumdatetime NOT NULL,
`
bonuspercentint(10NOT NULL,
PRIMARY KEY (`id`); 
Kann ich sie direkt in die psc_log einfügen, oder was stellt man mit der an?
€ Beim Einfügen kommt das hier:
PHP Code:
[Err1064 You have an error in your SQL syntaxcheck the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 14 
Kann mir jemand weiter helfen?
.Ziadd is offline  
Old 08/30/2012, 09:31   #2
 
theo1990's Avatar
 
elite*gold: 260
Join Date: Jul 2009
Posts: 1,123
Received Thanks: 180
Mit dieser Query (=Abfrage) erstellst du eine Tabelle die heißt psc_log mit den Spalten

Quote:
`id` int(11) NOT NULL AUTO_INCREMENT, ---->Id eines Eintrages mit automatischem Hochzählen
`account_id` int(11) NOT NULL,
`admin_id` int(11) DEFAULT NULL,
`card_type` varchar(20) NOT NULL,
`waehrung` varchar(10) NOT NULL,
`psc_code` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`psc_betrag` decimal(5,2) NOT NULL,
`psc_pass` varchar(20) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`status` int(1) NOT NULL,
`kommentar` varchar(200) NOT NULL,
`datum` datetime NOT NULL,
`bonuspercent` int(10) NOT NULL,
int wird für Zahlen benutzt
varchar wird für Alphanumerische Zeichen benutzt (=Sprich Zahlen und Zeichen)
Du gehst in die Konsole und fügst dort diesen code so ein.

Der fehler besagt das in Zeile 14 in der nähe von '' entwas falsch ist. Ich gehe mal von aus, dass die () falsch sind. mach sie mal weg dann müsste es gehen.
theo1990 is offline  
Thanks
1 User
Old 08/30/2012, 09:45   #3
 
.Ziadd's Avatar
 
elite*gold: 0
Join Date: Aug 2012
Posts: 155
Received Thanks: 47
Quote:
Originally Posted by theo1990 View Post
Mit dieser Query (=Abfrage) erstellst du eine Tabelle die heißt psc_log mit den Spalten



int wird für Zahlen benutzt
varchar wird für Alphanumerische Zeichen benutzt (=Sprich Zahlen und Zeichen)
Du gehst in die Konsole und fügst dort diesen code so ein.

Der fehler besagt das in Zeile 14 in der nähe von '' entwas falsch ist. Ich gehe mal von aus, dass die () falsch sind. mach sie mal weg dann müsste es gehen.
Wo füge ich das jetzt ein, um das verwenden zu können?
"Konsole" sagt mir gerade nichts.
.Ziadd is offline  
Old 08/30/2012, 09:50   #4
 
theo1990's Avatar
 
elite*gold: 260
Join Date: Jul 2009
Posts: 1,123
Received Thanks: 180
Sorry aber ich hab jetzt kein navicate aufem pc schau dir einfach mal das navicate an. Irgendwo muss ja query oder abfrage stehen dort musst du das einfügen

€= Hattest du das nicht schon ausprobiert? sonst hättest du doch nicht diesen fehler bekommen?

Quote:
[Err] 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 '' at line 14
theo1990 is offline  
Reply

Tags
metin2, navicat, queries, serverside




All times are GMT +1. The time now is 02:19.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.