update_gene_i_dev.sh 445 B

12345678910111213
  1. #update_gene_i_dev.sh script
  2. #!/bin/bash
  3. #update_gene_i_dev.sh
  4. DB_USER='root' #'your_db_username'
  5. DB_PASS='root' #'your_password'
  6. DB='my_genie_sys_database' #'database_name'
  7. #USAGE: sh update_gene_i_dev.sh
  8. mysql --host=localhost --user=$DB_USER --password=$DB_PASS --local_infile=1 --database=$DB <<EOFMYSQL
  9. update transcript_info,gene_info set transcript_info.gene_i=gene_info.gene_i where gene_info.gene_id=transcript_info.gene_id;
  10. EOFMYSQL