Skip to content

Instantly share code, notes, and snippets.

@lonelydimple
Created December 4, 2013 19:23
Show Gist options
  • Select an option

  • Save lonelydimple/7793828 to your computer and use it in GitHub Desktop.

Select an option

Save lonelydimple/7793828 to your computer and use it in GitHub Desktop.
ntn 1004
irb(main):004:0> Bond.find_by_bond_number('NTN 1044').updated_at
Bond Load (8.0ms) SELECT `bonds`.* FROM `bonds` WHERE `bonds`.`bond_number` = 'NTN 1044' LIMIT 1
=> Tue, 03 Dec 2013 23:20:18 CST -06:00
irb(main):005:0> exit
➜ mbc git:(choose_agency_to_apply_accounting_transaction) mysql -u app -h mysql1 mbc_production -p
Enter password:
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 334534
Server version: 5.0.75-0ubuntu10.5-log (Ubuntu)
Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> select updated_at from bonds where id = 315720;
+---------------------+
| updated_at |
+---------------------+
| 2013-12-04 05:20:18 |
+---------------------+
1 row in set (0.02 sec)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment