Tags: mysql
Jun
10
for DB in `grep "Current Database:" all-databases.sql | replace "-- Current Database: " "" | tr -d "\\\`" `; do sed -n "/-- Current Database: \`$DB\`/,/-- Current Database:/p" all-databases.sql > ${DB}.sql; done
Complicated... yes.. you're right. Let'… more »
Oct
06
Let's assume we have table called "Users" and that table has a filed called "UserName".As the assumptions continue... you are in charge of setting an index on that field.mysql> SELECT * FROM COLUMNS -> WHERE TABLE_SCHEMA = 'some_db' AN… more »
Recent comments