Webmaster Forum


Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Coding Forum Problems with your code? Let's hear about it.

   

Reply
 
LinkBack Thread Tools Display Modes
Old 03-22-2005, 07:51 AM   #1 (permalink)
Inactive
 
TeKBuzz's Avatar
 
Join Date: 11-12-03
Location: Ohio
Posts: 558
iTrader: 0 / 0%
Latest Blog:
None

TeKBuzz is liked by somebodyTeKBuzz is liked by somebodyTeKBuzz is liked by somebodyTeKBuzz is liked by somebody
Send a message via ICQ to TeKBuzz Send a message via AIM to TeKBuzz Send a message via MSN to TeKBuzz Send a message via Yahoo to TeKBuzz
Watching form

Hey, I have a form to update information in the database, is it possible to check what's changed without pulling the original information out of the database first? so that I can just update what needs updating? or would it be better to just update all the fields, whether they changed or not?
TeKBuzz is offline  
Add Post to del.icio.us
Reply With Quote
Old 03-22-2005, 09:10 AM   #2 (permalink)
Inactive
 
Thermit's Avatar
 
Join Date: 02-14-05
Posts: 86
iTrader: 0 / 0%
Latest Blog:
None

Thermit is liked by many
Unless you are talking about an unusual case, I don't think it will be a problem to reset a few fields to their current value.

It would probably be slower, and definately more work to do otherwise.
Thermit is offline  
Add Post to del.icio.us
Reply With Quote
Old 03-22-2005, 10:35 AM   #3 (permalink)
Inactive
 
littleFella's Avatar
 
Join Date: 06-20-04
Location: Ontario
Posts: 3,359
iTrader: 0 / 0%
Latest Blog:
None

littleFella is a splendid one to beholdlittleFella is a splendid one to beholdlittleFella is a splendid one to beholdlittleFella is a splendid one to beholdlittleFella is a splendid one to beholdlittleFella is a splendid one to beholdlittleFella is a splendid one to beholdlittleFella is a splendid one to beholdlittleFella is a splendid one to beholdlittleFella is a splendid one to beholdlittleFella is a splendid one to behold
Quote:
Originally Posted by TeKBuzz
Hey, I have a form to update information in the database, is it possible to check what's changed without pulling the original information out of the database first? so that I can just update what needs updating? or would it be better to just update all the fields, whether they changed or not?
If your database system has triggers and stored procedures support, then you can use that to what you want (and quite a bit more).

Postgresql and Firebird have this functionality. Not sure if the free version of mySQL does. But then, the free version of mySQL is not really a database system, but a glorified flat file system with SQL functionality.

For mySQL you're likely better off just updating all the records. I would be surprised if mySQL performed any writes on records that didn't change.
littleFella is offline  
Add Post to del.icio.us
Reply With Quote
Old 03-22-2005, 02:40 PM   #4 (permalink)
sim
Banned
 
Join Date: 01-23-04
Posts: 2,367
iTrader: 0 / 0%
Latest Blog:
None

sim is just really nicesim is just really nicesim is just really nicesim is just really nicesim is just really nicesim is just really nicesim is just really nicesim is just really nicesim is just really nicesim is just really nicesim is just really nice
Quote:
Originally Posted by littleFella
But then, the free version of mySQL is not really a database system, but a glorified flat file system with SQL functionality.
.
all databases are technically flat file based.
sim is offline  
Add Post to del.icio.us
Reply With Quote
Old 03-22-2005, 02:46 PM   #5 (permalink)
Inactive
 
littleFella's Avatar
 
Join Date: 06-20-04
Location: Ontario
Posts: 3,359
iTrader: 0 / 0%
Latest Blog:
None

littleFella is a splendid one to beholdlittleFella is a splendid one to beholdlittleFella is a splendid one to beholdlittleFella is a splendid one to beholdlittleFella is a splendid one to beholdlittleFella is a splendid one to beholdlittleFella is a splendid one to beholdlittleFella is a splendid one to beholdlittleFella is a splendid one to beholdlittleFella is a splendid one to beholdlittleFella is a splendid one to behold
Quote:
Originally Posted by sim
all databases are technically flat file based.
No, they aren't.
littleFella is offline  
Add Post to del.icio.us
Reply With Quote
Old 03-22-2005, 07:30 PM   #6 (permalink)
Inactive
 
TeKBuzz's Avatar
 
Join Date: 11-12-03
Location: Ohio
Posts: 558
iTrader: 0 / 0%
Latest Blog:
None

TeKBuzz is liked by somebodyTeKBuzz is liked by somebodyTeKBuzz is liked by somebodyTeKBuzz is liked by somebody
Send a message via ICQ to TeKBuzz Send a message via AIM to TeKBuzz Send a message via MSN to TeKBuzz Send a message via Yahoo to TeKBuzz
Is there a non-free mysql? If so how would I know which one I got... I just got a server that a friend recommended...

Thanx for the advice though, I'll be done with it tomorrow... I'll post it so yall might tell me how to make it more secure etc.
TeKBuzz is offline  
Add Post to del.icio.us
Reply With Quote
Old 03-22-2005, 07:47 PM   #7 (permalink)
Inactive
 
littleFella's Avatar
 
Join Date: 06-20-04
Location: Ontario
Posts: 3,359
iTrader: 0 / 0%
Latest Blog:
None

littleFella is a splendid one to beholdlittleFella is a splendid one to beholdlittleFella is a splendid one to beholdlittleFella is a splendid one to beholdlittleFella is a splendid one to beholdlittleFella is a splendid one to beholdlittleFella is a splendid one to beholdlittleFella is a splendid one to beholdlittleFella is a splendid one to beholdlittleFella is a splendid one to beholdlittleFella is a splendid one to behold
Quote:
Originally Posted by TeKBuzz
Is there a non-free mysql? If so how would I know which one I got... I just got a server that a friend recommended...
Yes, there is. If you use mySQL for commercial purposes then you have to pay license fees. You have to pay them even if you distribute an application without mySQL, but your application cannot function without it.

Version 5 will make mySQL a real database. It will loose some speed of course. It is one of the fastes now only because of the lack of some features critical in corporate environment, ACID compliance, various types of locking, stored procedures etc.
It looks that the license for version 5 may be a little more restrictive. Movement to other databases (posgresql, firebird) is noticeable lately.
littleFella is offline  
Add Post to del.icio.us
Reply With Quote
Old 03-22-2005, 08:37 PM   #8 (permalink)
Inactive
 
TeKBuzz's Avatar
 
Join Date: 11-12-03
Location: Ohio
Posts: 558
iTrader: 0 / 0%
Latest Blog:
None

TeKBuzz is liked by somebodyTeKBuzz is liked by somebodyTeKBuzz is liked by somebodyTeKBuzz is liked by somebody
Send a message via ICQ to TeKBuzz Send a message via AIM to TeKBuzz Send a message via MSN to TeKBuzz Send a message via Yahoo to TeKBuzz
So, since I don't run sites that earn money I don't have to pay anything right? or is it like I'm paying because the company I get service from has to pay? I don't think I understand... I've never paid for mysql or heard of anyone that does.
TeKBuzz is offline  
Add Post to del.icio.us
Reply With Quote
Old 03-22-2005, 09:23 PM   #9 (permalink)
Inactive
 
littleFella's Avatar
 
Join Date: 06-20-04
Location: Ontario
Posts: 3,359
iTrader: 0 / 0%
Latest Blog:
None

littleFella is a splendid one to beholdlittleFella is a splendid one to beholdlittleFella is a splendid one to beholdlittleFella is a splendid one to beholdlittleFella is a splendid one to beholdlittleFella is a splendid one to beholdlittleFella is a splendid one to beholdlittleFella is a splendid one to beholdlittleFella is a splendid one to beholdlittleFella is a splendid one to beholdlittleFella is a splendid one to behold
Quote:
Originally Posted by TeKBuzz
So, since I don't run sites that earn money I don't have to pay anything right? or is it like I'm paying because the company I get service from has to pay? I don't think I understand... I've never paid for mysql or heard of anyone that does.
You got it right. If you are leasing web space from some hosting company you are safe. At least for now.
littleFella is offline  
Add Post to del.icio.us
Reply With Quote
Old 03-23-2005, 04:50 AM   #10 (permalink)
Inactive
 
TeKBuzz's Avatar
 
Join Date: 11-12-03
Location: Ohio
Posts: 558
iTrader: 0 / 0%
Latest Blog:
None

TeKBuzz is liked by somebodyTeKBuzz is liked by somebodyTeKBuzz is liked by somebodyTeKBuzz is liked by somebody
Send a message via ICQ to TeKBuzz Send a message via AIM to TeKBuzz Send a message via MSN to TeKBuzz Send a message via Yahoo to TeKBuzz
Alright man I appreciate you telling me. Espcially since I really didn't understand what you meant at first ^_^
TeKBuzz is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Trauma - watching vs experiencing John Scott Forum Lobby 13 10-20-2007 10:43 AM
watching WMV files on OSX with FF JamieJelly Computers & Internet 2 09-26-2006 02:28 PM
things to be watching for on my site?? gfriedm1 Google Forum 5 06-17-2006 01:05 PM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 03:14 AM.
© Copyright 2008 V7 Inc