Java Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesJava Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now!
  #1  
Old September 10th, 2002, 03:59 AM
phphead101 phphead101 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2002
Posts: 0 phphead101 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Help needed: editing and deleting from a database

Hi,

I am working on an application that displays the content of a database as a web page. This content is pulled from the database by servlets and it is inserted into the database via an admin form.

The problem I have is, I need to be able to edit entries and delete entries. I don't really know java and the application was created by someone else, I have just been given the job of adding the edit and delete features.

I would appreciate it if someone could give me the code for editing an MS SQL database and deleting from it.

Thanks in advance,
martin

PS: I have a very tight deadline for this so help is very much appreciated.

Reply With Quote
  #2  
Old September 19th, 2002, 04:54 PM
treshr treshr is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Location: The Netherlands
Posts: 6 treshr User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Red face

First of all you have to create the query's you want to use for deleting and editing stuff.

I don't what you know about SQL but what you're asking is the most basic there is.

For editing you use the UPDATE code, it looks like this:
UPDATE users SET email='user@test.org' WHERE user_id = 1;

For deleting you use the DELETE code, like this:
DELETE FROM users WHERE user_id = 15;

This will point you to the right way.

Success.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesJava Help > Help needed: editing and deleting a database


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 3 hosted by Hostway