Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #cat file.txt
- 12354
- 13456
- 13498
- #!/bin/bash
- for i in `cat file.txt`
- do
- sqlplus XXXXX/XXXXX@DB_NAME << EOF
- select *from TABLE_NAME where id="$i"
- EOF
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement