caparing date problem

This is a discussion on caparing date problem within the MySQL Database forums, part of the Database Forums category; I have a table which include the fields activity_start_date and activity_end_date the problem is that i dnt want to insert ...


Go Back   Usenet Forums > Database Forums > MySQL Database

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-26-2006
jasvaran
 
Posts: n/a
Default caparing date problem

I have a table which include the fields activity_start_date and
activity_end_date
the problem is that i dnt want to insert any record in the table id
activity_end_date is before the activity_start_date

Reply With Quote
  #2 (permalink)  
Old 10-26-2006
Captain Paralytic
 
Posts: n/a
Default Re: caparing date problem

WHAT????? Thismakes no sense at all!
jasvaran wrote:
> I have a table which include the fields activity_start_date and
> activity_end_date

Fine.

> the problem is that i dnt want to insert any record in the table id

OK so don't insert one.

> activity_end_date is before the activity_start_date

You're a time traveller right?

Care to have another go at asking this question?

Reply With Quote
  #3 (permalink)  
Old 10-26-2006
Manish Pandit
 
Posts: n/a
Default Re: caparing date problem

jasvaran wrote:
> I have a table which include the fields activity_start_date and
> activity_end_date
> the problem is that i dnt want to insert any record in the table id
> activity_end_date is before the activity_start_date


Compare the dates programatically, and do not call insert if the logic
returns false. This should be possible in any programming language. As
far as SQL syntax goes, there is no where clause in an insert
statement.

-cheers,
Manish

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 06:07 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0