Armenian Knowledge Base  

Go Back   Armenian Knowledge Base > Technical sections > Languages, Compilers, Interpreters
Register

Reply
 
LinkBack Thread Tools
Old 24.06.2004, 12:47   #1
Младенец
 
Join Date: 11 2002
Location: Skofja Loka , Slovenia
Posts: 19
Downloads: 0
Uploads: 0
Reputation: 0 | 0
Default Update statement in Mysql

jhoghovurd jan stegh mi hat khdir unem Mysql-i het karogha ogneq ?
bacatrem , unem table vori mej ka datark "row" , "varchar" tipi
uzum em et amen angam et row-@ update anem u inch vor bar gumarem

mysql_query("update msg set viewer=viewer + '$word ' wher id=1")

senc grum em et row-@ datark lini liq@ lini darcnuma "0"
vonc anem vor inq@ datark lini script@ ashkhatacnem darna "top" heto avelana mi urish bar darna "top top1" heto "top top1 top2" tenc
Reply With Quote
Old 24.06.2004, 13:41   #2
Moderator
 
acid's Avatar
 
Join Date: 09 2001
Location: South Korea, Gumi
Posts: 7,699
Downloads: 102
Uploads: 34
Blog Entries: 16
Reputation: 561 | 6
Default

Quote:
Originally Posted by x.ice
jhoghovurd jan stegh mi hat khdir unem Mysql-i het karogha ogneq ?
bacatrem , unem table vori mej ka datark "row" , "varchar" tipi
uzum em et amen angam et row-@ update anem u inch vor bar gumarem

mysql_query("update msg set viewer=viewer + '$word ' wher id=1")

senc grum em et row-@ datark lini liq@ lini darcnuma "0"
vonc anem vor inq@ datark lini script@ ashkhatacnem darna "top" heto avelana mi urish bar darna "top top1" heto "top top1 top2" tenc
Подразумеваю что это ПХП.
Для начала select-ом прочти что в этом row и сохрани в $oldword -е.
$query = 'update msg set viewer=' . $oldword . ' ' . $newword . 'wherе id=1';
mysql_query($query);

Удачи.
Reply With Quote
Old 24.06.2004, 13:47   #3
Академик
 
greka's Avatar
 
Join Date: 09 2001
Location: inside myself
Posts: 5,369
Downloads: 0
Uploads: 0
Reputation: 18 | 5
Default

miguce

mysql_query("update msg set viewer=viewer + '$word ' wherE id=1")

?

vonc-vor tar er bac toghnvac...
Reply With Quote
Old 26.06.2004, 11:05   #4
Младенец
 
Join Date: 11 2002
Location: Skofja Loka , Slovenia
Posts: 19
Downloads: 0
Uploads: 0
Reputation: 0 | 0
Default

vsem spasibo , ya ujhe nashol vikod !

mysql_query("update msg set viewer=concat(viewer,'$word ') where id=1")

vot eto idealnoe reshenie
Reply With Quote
Sponsored Links
Reply

Thread Tools


На правах рекламы:
реклама

All times are GMT. The time now is 16:57.


Powered by vBulletin® Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.