473,403 Members | 2,293 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

INSER / DOUPLICATE

ok, the sittuation is that i've a table with 2 cols. one is named
'name' and the other 'lastupdate'. i declared name as unique.

now i want to insert something and if it exist i only want to update
the lastupdate col.

i read in the manual and found

INSERT foo ON DUPLICATE UPDATE foo

but this works only with mysql 4.1.0 and i dont have the possibility
to run it on mysql 4.1.0

perhaps there is an other possibility to solve my problem?

i only want one query!!!

thx
FreakET
Jul 20 '05 #1
0 1071

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: jeef | last post by:
I have a problem inserting items into a database. My code is below. What happens is sometimes it brings up and error then if i hit refresh it goes through, but it wont enter my information into...
10
by: Kristian | last post by:
Hello, I can't get info from my web form into my Access database. The connection works. I've tried a command with CommandText = "Insert Into..." Error! "You have to have a query that allows...
2
by: Ducknut | last post by:
Hi all, I have a table in Access that basically contains 3 columns. The first column is an ID number, the second column is a hyperlink to a picture that's stored on a server, and the third column...
4
by: Krij | last post by:
Hi! Can anybody tell me what I'm missing here? I'm trying to insert a new record into a sql-database from code at runtime (not stored procedure), but get the following error message: "The...
0
by: garfy | last post by:
Hi I am new memeber of this forum and I already got some answers so congrat on that jere is my question I have to add 2 new rows in a table in mysql and I do not know hot to do that I...
1
by: flash | last post by:
Need hlep to delete array only because all function is ok (inser, sort andsearch) #include <iostream.h> //functions prototype void Insert(int,int); void Delete(int,int); int...
3
by: Swordfish Dundee | last post by:
Hi Guys, Complete newbvie here, trying to get an answer to my problem. I have written small client / server applications, in which everything that the server does is recorded in a logfile...
2
by: wugon.net | last post by:
Problem: after inser trigger encounter error sql0348 Env:db2 v8 + fp 13 + win xp Description: we build two after insert triggers DB2.TRG1, DB2.TRG2 on base table DB2.TEST1, insert data into...
2
by: alivip | last post by:
when I wont to inser (anyting I print) to the textbox it will not inser it just print then hanging # a look at the Tkinter Text widget # use ctrl+c to copy, ctrl+x to cut selected text, #...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.