Search Results

Search: Posts Made By: juve11
1,740
Posted By juve11
i did it with somevariable=$(mysql -uroot...
i did it with

somevariable=$(mysql -uroot database -sN -e "select count(id) from some_table where id='$id' ;")

Thank you!
1,740
Posted By juve11
Putting mysql column value in variable
Hello,
i have the following code :

somevariable=`mysql -u root --password="" databasename -e "select count(column_name) from table_name where id=1 and id_age=2 ; " --skip-column-names -s -N`...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 10:25 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy