β β β ο½ππ»βΊπ«Δπ¬πβ β β β
π¦ shell-Can you use Shell to query, modify, delete, etc. SQL?
pinterest.com/UnderCodeOfficial
π¦ ππΌππ πππΈβπ :
#! / Usr / bin / ksh
SQL_EXEC ()
{
sqlplus the USER $ / $ @ $ DB the PASSWD <<!
SET LINESIZE 1024
SET pageSize 1024
$ SQLCOMM
quit
!
}
#select
SQLCOMM = "SELECT 'XXX', username from the all_users;"
SQL_EXEC | grep XXX
#insert, Delete omitted
with INformIX yo prompts what to do if sql_exec cannot be found.
I think this should work,
#vi query.sh
sqlplus $ USER / $ PASSWD << EOF
select β¦β¦ from β¦β¦β¦β¦
insert β¦β¦β¦β¦β¦β¦
delete β¦β¦β¦β¦β¦β¦
EOF
: wq
# query.sh
isql <<!
database dbname;
select * from tbname where fieldname="xxxxx";
delete from tbname;
.....
close database;
!
Written by Underc0de
β β β ο½ππ»βΊπ«Δπ¬πβ β β β
π¦ shell-Can you use Shell to query, modify, delete, etc. SQL?
pinterest.com/UnderCodeOfficial
π¦ ππΌππ πππΈβπ :
#! / Usr / bin / ksh
SQL_EXEC ()
{
sqlplus the USER $ / $ @ $ DB the PASSWD <<!
SET LINESIZE 1024
SET pageSize 1024
$ SQLCOMM
quit
!
}
#select
SQLCOMM = "SELECT 'XXX', username from the all_users;"
SQL_EXEC | grep XXX
#insert, Delete omitted
with INformIX yo prompts what to do if sql_exec cannot be found.
I think this should work,
#vi query.sh
sqlplus $ USER / $ PASSWD << EOF
select β¦β¦ from β¦β¦β¦β¦
insert β¦β¦β¦β¦β¦β¦
delete β¦β¦β¦β¦β¦β¦
EOF
: wq
# query.sh
isql <<!
database dbname;
select * from tbname where fieldname="xxxxx";
delete from tbname;
.....
close database;
!
Written by Underc0de
β β β ο½ππ»βΊπ«Δπ¬πβ β β β
Pinterest
UndercOde (UNDERCODEOFFICIAL) on Pinterest
UndercOde | πππππ£βπ ππ πππ€π₯πππ βπ ππ‘πππͺ:
Programming, Web & Applications makers, Host, bugs fix, Satellite Reicivers Programming..
Started Since 2011
Programming, Web & Applications makers, Host, bugs fix, Satellite Reicivers Programming..
Started Since 2011
β β β ο½ππ»βΊπ«Δπ¬πβ β β β
π¦ shell-Can SHELL be used to query, modify, delete, etc. SQL
! # / Usr / bin / ksh
SQL_EXEC ()
{
sqlplus the USER $ / $ @ $ DB the PASSWD <<!
SET LINESIZE 1024
SET pageSize 1024
$ SQLCOMM
quit
!
}
#select
SQLCOMM = "SELECT 'XXX', username from the all_users;"
SQL_EXEC | grep XXX
#insert, Delete omitted
with What should I do if I cannot find sql_exec in INformIX?
I think this should work,
#vi query.sh
sqlplus $ USER / $ PASSWD << EOF
select β¦β¦ from β¦β¦β¦β¦
insert β¦β¦β¦β¦β¦β¦
delete β¦β¦β¦β¦β¦β¦
EOF
: wq
# query.sh
isql <<!
database dbname;
select * from tbname where fieldname="xxxxx";
delete from tbname;
.....
close database;
!
written by undercode
β β β ο½ππ»βΊπ«Δπ¬πβ β β β
π¦ shell-Can SHELL be used to query, modify, delete, etc. SQL
! # / Usr / bin / ksh
SQL_EXEC ()
{
sqlplus the USER $ / $ @ $ DB the PASSWD <<!
SET LINESIZE 1024
SET pageSize 1024
$ SQLCOMM
quit
!
}
#select
SQLCOMM = "SELECT 'XXX', username from the all_users;"
SQL_EXEC | grep XXX
#insert, Delete omitted
with What should I do if I cannot find sql_exec in INformIX?
I think this should work,
#vi query.sh
sqlplus $ USER / $ PASSWD << EOF
select β¦β¦ from β¦β¦β¦β¦
insert β¦β¦β¦β¦β¦β¦
delete β¦β¦β¦β¦β¦β¦
EOF
: wq
# query.sh
isql <<!
database dbname;
select * from tbname where fieldname="xxxxx";
delete from tbname;
.....
close database;
!
written by undercode
β β β ο½ππ»βΊπ«Δπ¬πβ β β β