User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the MySQL section within the Web Development category of DaniWeb, a massive community of 401,997 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,523 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Views: 751 | Replies: 4
Reply
Join Date: Oct 2006
Posts: 62
Reputation: welbyobeng is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
welbyobeng welbyobeng is offline Offline
Junior Poster in Training

How to create a trigger to UPDATE

  #1  
Mar 11th, 2008
How to create a trigger to UPDATE this for me when a new record is inserted.

I want to create a column called "fullthumb" where by default it has the words "http://example.com/thumbs/" and add the words in "thumb" column.

UPDATE files SET
fullthumb = CONCAT('http://example.com/thumbs/', thumb);
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Dec 2007
Posts: 112
Reputation: mwasif is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 13
mwasif mwasif is offline Offline
Junior Poster

Re: How to create a trigger to UPDATE

  #2  
Mar 11th, 2008
Checkout MySQL Manual.
Reply With Quote  
Join Date: Oct 2006
Posts: 62
Reputation: welbyobeng is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
welbyobeng welbyobeng is offline Offline
Junior Poster in Training

Re: How to create a trigger to UPDATE

  #3  
Mar 11th, 2008
Originally Posted by mwasif View Post
Checkout MySQL Manual.


I did and I am having trouble doing it...Can anyone help
Reply With Quote  
Join Date: Dec 2007
Posts: 112
Reputation: mwasif is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 13
mwasif mwasif is offline Offline
Junior Poster

Re: How to create a trigger to UPDATE

  #4  
Mar 13th, 2008
What you have made so far?
Reply With Quote  
Join Date: Oct 2006
Posts: 62
Reputation: welbyobeng is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
welbyobeng welbyobeng is offline Offline
Junior Poster in Training

Re: How to create a trigger to UPDATE

  #5  
Mar 13th, 2008
What will i put in my sql command to get that?
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb MySQL Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the MySQL Forum

All times are GMT -4. The time now is 8:50 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC