Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the best MySQL alternative to dual?

Tags:

mysql

So, primarily I work in oracle and have gotten spoiled by working with dual. For a user with select privileges on a given database how could you reproduce the dual functionality?

IE:

Select 'foo' from dual

Probably a very simple answer that I'm just missing.

like image 298
Jeff Avatar asked Oct 27 '15 21:10

Jeff


1 Answers

I remember using Select 1 from dual in oracle and just select 1; in mysql. So I think you just try without a table reference.

This was to verify connectivity so not sure if it applies in your case.

like image 199
Amer Agovic Avatar answered Sep 20 '22 17:09

Amer Agovic