SunQuest
 
           MySQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesMySQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old February 16th, 2004, 03:19 AM
Blue Horizon Blue Horizon is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 2 Blue Horizon User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Unhappy How to create view/sp/trigger in MySQL?

Hello friends,

I'm a new comer to this forum.
I'm eager to know how to create VIEW/Stored Procedure/Triggers in MySQL.
I'm needing some clues.

Reply With Quote
  #2  
Old February 16th, 2004, 03:28 AM
Blue Horizon Blue Horizon is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 2 Blue Horizon User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
By the way,

I couldn't set default field as a YEAR value.

CREATE TABLE `fg3` (
`PRE` enum('We','Wd','Wm') NOT NULL default 'We',
`EYEAR` int(11) NOT NULL default 'YEAR(CURDATE())',
`ID` bigint(20) NOT NULL auto_increment,
PRIMARY KEY (`PRE`,`EYEAR`,`ID`)
) TYPE=MyISAM;

The function which is in a form of bold text above always return 0 whenever I insert a new line.

Reply With Quote
  #3  
Old March 25th, 2004, 07:37 PM
ulysses ulysses is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 1 ulysses User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
From my understanding you can no create triggers in the current mySQL. MySQL 5.0 is suppose to support this functionality, but it is currently unstable.

I may be wrong, but jus thought I'd give you my opinion.


Ulysses

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMySQL Development > How to create view/sp/trigger in MySQL?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway