Register for your free account! | Forgot your password?

You last visited: Today at 06:21

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

Advertisement



[Request] SQL syntax

Discussion on [Request] SQL syntax within the Shaiya PServer Development forum part of the Shaiya Private Server category.

Reply
 
Old   #1
 
SkuulCandy's Avatar
 
elite*gold: 0
Join Date: Apr 2015
Posts: 424
Received Thanks: 113
[Request] SQL syntax

Hi, anyone have this sql syntax :
Code:
UPDATE PS_GameData.dbo.CharItems SET CraftName = Craftname + '" & TextStat.Text & "' WHERE  (CharID,ItemID) value ('" & TextCharID.Text & "','" & TextItemID.Text & "')
I would like this :
When i click on my button named 'STR' this query will be executed into my db.
Example if i right '50' into TextStat.Text when i click on 'STR' button Craftname of ItemID = TextItemID.Text where CharID= TextCharID.text will be updated. SO it's doesn't work because craftname doesn't work like that. And anyone have this party of my sql syntaxe can be work :
Code:
SET CraftName = Craftname + '" & TextStat.Text & "'
Thanks
SkuulCandy is offline  
Old 06/17/2015, 20:12   #2
 
nubness's Avatar
 
elite*gold: 10
Join Date: Jan 2012
Posts: 1,698
Received Thanks: 5,451

Code:
-- UPDATE STR
UPDATE CharItems
SET Craftname = @STR + SUBSTRING(Craftname, 3, 18)
WHERE ItemUID = @ItemUID

-- UPDATE DEX
UPDATE CharItems
SET Craftname = SUBSTRING(Craftname, 1, 2) + @DEX + SUBSTRING(Craftname, 5, 16)
WHERE ItemUID = @ItemUID

-- UPDATE REC
UPDATE CharItems
SET Craftname = SUBSTRING(Craftname, 1, 4) + @REC + SUBSTRING(Craftname, 7, 14)
WHERE ItemUID = @ItemUID
nubness is offline  
Thanks
4 Users
Old 06/17/2015, 20:23   #3
 
SkuulCandy's Avatar
 
elite*gold: 0
Join Date: Apr 2015
Posts: 424
Received Thanks: 113
Since 2013 my Shaiya Developper not Vb net.
SkuulCandy is offline  
Reply


Similar Threads Similar Threads
Syntax error wtf?
12/15/2013 - Flyff Private Server - 5 Replies
Leute ich habe beim Model Change die dinge auskommentiert die man nicht changen darf aber es kommt immer wieder dieser error... http://i.epvpimg.com/BbvWc.png
syntax-wow 4.3.4 GER
01/30/2013 - WoW PServer Advertising - 2 Replies
Wir sind ein Deutscher privat-Server. Wir würden uns freuen euch dazu zu zählen. Liebe Spieler, Nerds und Communitymitglieder in diesem Thread möchte ich euch ein neues und atemberaubendes Projekt vorstellen, was den Namen syntax-wow trägt. Das Ziel von syntax-wow ist es, eines der besten Cata Freeshards zu werden die die Europäische Szene-Community zu bieten hat. Mit unseren Starken Dedizierten Servern, die in eines der Europas größtem Rechenzentrum stehen und an einen unglaublichen...
at&t syntax
09/21/2011 - General Coding - 8 Replies
hmmm... ich wusste zwar dass die at&t syntax (meiner meinung nach) nichts schönes is.... aber is die so anders? __asm("mov eax, fs:"); __asm("mov eax, "); __asm("mov edx, eax"); __asm("add eax, 0xeeeeeeee"); // platzhalter! __asm("push eax"); hier bekomm ich fehler für: mov eax, - too many memory references for 'mov' | invalid char ''
Syntax?
02/14/2011 - AutoIt - 26 Replies
Hey Leute, gibt es in diesem Programm, rein syntaktisch gesehen irgendwelche Fehler, weil Imagesearch, keins der Bilder identifizieren kann? Dim $myPics $myPics = 14 $myPics = '1.bmp' $myPics = '2.bmp' $myPics = '3.bmp' $myPics = '4.bmp' $myPics = '5.bmp'
[HELP] C# WPF syntax
12/23/2010 - CO2 Programming - 14 Replies
Does anyone knows how to convert or what's the right syntax on this C# form application syntax? webBrowser1.Document.GetElementById("name&quo t;).SetAttribute("value", textBox2.Text); webBrowser1.Document.GetElementById("message& quot;).SetAttribute("value", textBox1.Text); webBrowser1.Document.GetElementById("sumbit&q uot;).InvokeMember("click"); i'm having error on "GetElementById" :S just confused.



All times are GMT +2. The time now is 06:21.


Powered by vBulletin®
Copyright ©2000 - 2024, 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 ©2024 elitepvpers All Rights Reserved.