# MySQL And Field Value

**URL:** <https://www.ruby-forum.com/t/mysql-and-field-value/138439>\
**Category:** Rails\
**Created:** [May 23, 2008, 1:49am UTC](https://www.ruby-forum.com/t/mysql-and-field-value/138439 "2008-05-23T01:49:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![joel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b9bd4f/32.png) [@joel](https://www.ruby-forum.com/u/joel)\
**Post date:** [May 23, 2008, 1:49am UTC](https://www.ruby-forum.com/t/mysql-and-field-value/138439/1 "2008-05-23T01:49:17Z")

</div>

Hello,

I need to get an int value from my table. The int column is described  
as int(11). i’m trying to get one particular value (‘1000’) and insert  
it back into another table’s int field/column. However in the  
meanwhile this value is changing from 1000 to 102689.  
I guess this has to be done with data type parsing from Rails.  
Does someone know how to handle this problem.

Regards,

Joel

---

<div class="post-metadata">

**Author:** ![joel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b9bd4f/32.png) [@joel](https://www.ruby-forum.com/u/joel)\
**Post date:** [May 23, 2008, 2:04am UTC](https://www.ruby-forum.com/t/mysql-and-field-value/138439/2 "2008-05-23T02:04:29Z")

</div>

On 23 May 2008, at 00:48, joel wrote:

> Hello,
> 
> I need to get an int value from my table. The int column is described  
> as int(11). i’m trying to get one particular value (‘1000’) and insert  
> it back into another table’s int field/column. However in the  
> meanwhile this value is changing from 1000 to 102689.  
> I guess this has to be done with data type parsing from Rails.  
> Does someone know how to handle this problem.  
> Values don’t magically change. Show us what you’re doing and someone  
> might be able to spot the problem.

Fred
