Name another user as admin via SQL codes

How can I name another user of my site as admin via SQL codes? I am having problems with my main admin and I cant use the admin account to name another user as admi. 

Thanks since now, guys.

[Admin edit: Context here.]