Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

i want function to replace last 3 numbers in field

Status
Not open for further replies.

pcwaleed

Programmer
Oct 7, 2014
29
IQ
Hello .. I want to replace last 3 numbers in field
example..
table name= table1
field name= salary
contain numbers like 234650 or 5556432 or 8787432
I want replace last 3 numbers by zero 234000 or 5556000 or 8787000


thanx
 
Code:
REPLACE Salary WITH INT(Salary/1000)*1000 ALL

Borislav Borissov
VFP9 SP2, SQL Server
 
hello
when can i use this function... I work in visual foxpro9
thanx
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top