I am looking for a way to see generated string of the query but without executing it.
Note that the query hasn't been executed before. (I do not want $this->db->last_query();
)
I hope there be a method with a name like $this->db->echo_query_string($table_name = '');
to be used exactly like $this->db->get($table_name = '');
BUT THE ONLY DIFFERENCE BE THAT get()
executes the code, but echo_query_string()
just echoes the string of query without execution.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…