473,395 Members | 1,905 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,395 software developers and data experts.

change the last bit

I have a int4 coloumn, and I want to change the last bit the the
number in this column to 0. How can I do it?

Thanks,

John
Nov 23 '05 #1
1 1161
ljb
ho******@yahoo.com wrote:
I have a int4 coloumn, and I want to change the last bit the the
number in this column to 0. How can I do it?


Last bit = least significant bit (LSB)?
update mytable set thecolumn = thecolumn & ~1 where ...
Nov 23 '05 #2

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

Similar topics

2
by: ~John Hemans~ | last post by:
Hi, I have a popup window which is sized correctly for the content on a number of pages in a presentation. However, from the last page of the presentation I need to link to a new page (still...
2
by: google | last post by:
I have a HTML file that contains an iframe. The HTML file is served by one server. The iframe contains a link to a completely different server. My question is, can any action in the iframe (such...
2
by: john | last post by:
Hello developers, I am examining trends in developer satisfaction with Microsoft. Without starting a flame war, I would really appreciate it if you respond with the top 3 things that, as a...
3
by: Peter Williams | last post by:
Hi All, I want to write some javascript for a html page which does the following. Imagine that the page contains a table with 2 columns and 3 rows, e.g.: +---+---+ | A | B | +---+---+
2
by: Bryan Glennon | last post by:
I've been mucking around with databinding & I am seeing something I can't explain... I have a collection (PersonList) that inherits from CollectionBase and implements IBindingList. It contains...
1
by: Jan Poslusny | last post by:
Hi, is some 'technical' way to detect where the last change (i.e. insert or update or delete) was performed on specified table ? I know I can write appropriate triggers, but I am interesting in...
3
by: Chen ShuSheng | last post by:
HI, I am now study a segment of codes: ------------------------ printf("%p\t",fp); /*add by me*/ fseek(fp, 0L, SEEK_END); /* go to end of file */ printf("%p\t",fp); ...
4
by: CDMAPoster | last post by:
In: http://groups.google.com/group/comp.databases.ms-access/msg/f06bd4c45037ef29 Lyle wrote: :Terry Kreft wrote: : :>Suck it and See? :
2
by: KrazyKasper | last post by:
I need to change the EmployeeName field in my report (based on a query) to Proper case and change it from LAST, FIRST or LAST, MI, FIRST (Results should look like:John Q Smith). The name styles...
3
by: reddevils2020 | last post by:
Hi everyone! How we can change the end of binary files?for example we have a file contains 6 recorde and each recorde is 10 byte(size of file is 60byte).I want to delete the last recorde,I want to...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.