Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within JDBC and Relational Databases
Search Coderanch
Advance search
Google search
Register / Login
Win a copy of
Helidon Revealed: A Practical Guide to Oracle’s Microservices Framework
this week in the
Java in General
forum!
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
paul wheaton
Liutauras Vilda
Ron McLeod
Sheriffs:
Jeanne Boyarsky
Devaka Cooray
Paul Clapham
Saloon Keepers:
Scott Selikoff
Tim Holloway
Piet Souris
Mikalai Zaikin
Frits Walraven
Bartenders:
Stephan van Hulst
Carey Brown
Forum:
JDBC and Relational Databases
Data Update
Ekrem Altintas
Greenhorn
Posts: 14
posted 19 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hello I want to update records on DB.I wrote this statements but when I execute the program, records on the
sayi
column become 0.Is UPDATE satement wrong?
... int artir=5; statement cumle; ResultSet sonuc; ... sonuc=cumle.executeQuery("Select * from kelimeler"); sonuc.last(); cumle.executeUpdate("Update kelimeler set sayi='artir'"); ...
Akin Demir
Greenhorn
Posts: 9
posted 19 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
cumle.executeUpdate("Update kelimeler set sayi="+artir);
-Akin
Jeff Albertson
Ranch Hand
Posts: 1780
posted 19 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Do you realize that an UPDATE statement without a WHERE clause will update all records in the table?
There is no emoticon for what I am feeling!
Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Search Problem
If Statement&Equals
Fetching Data From Database
Date / Time problems
Data Insert Problem
More...