How does Thinkphp call data tables with different table prefixes in the database? generally, the prefixes of data tables in thinkphp are uniform, but sometimes the requirements are different, for example, if you need to have a table prefix and a different table prefix during TP deployment, how can you call this function? Of course, if a beginner answers this question, he will certainly say that it will be called using native SQL. if you have this kind of thinking, I suggest you study hard. why? What do native thinkphp do ?!
Reply to discussion (solution)
$ Model-> table ('think _ user')-> where ('status> 1')-> select ();
Http://document.thinkphp1.cn/manual_3_2.html#table
I really want to know what's wrong with native. thinkphp encapsulates it for convenience. Is it possible to use native in special circumstances?
Do not be bound by the framework.