简体   繁体   English

带有MSSQL数据库的Cake PHP

[英]Cake PHP With MSSQL Database

I need some suggestion regarding Cake PHP With MSSQL Database. 我需要有关Cake SQL与MSSQL数据库的一些建议。

I want to use CakePHP app in Linux/ubuntu/centOS server and remote windows server for MSSQL Database ( I know that we can not use MSSQL in Linux ) 我想在Linux / ubuntu / centOS服务器和远程Windows服务器的MSSQL数据库中使用CakePHP应用程序(我知道我们不能在Linux中使用MSSQL)

so in database.php i can define datasource as Sqlserver and remote server address in host etc. 所以在database.php中,我可以将数据源定义为Sqlserver和主机等中的远程服务器地址。

Here my main query is that after that for CRUD, still i can use same find query or i have to write query using other method? 在这里,我的主要查询是,对于CRUD,我仍然可以使用相同的查找查询,还是必须使用其他方法编写查询? i can use Find/count/list/save/saveMany/updateAll and Bind-model etc same like when we use MySQL? 我可以像使用MySQL一样使用Find / count / list / save / saveMany / updateAll和Bind-model等。

ORMs are built with interoperability in mind. 建立ORM时要考虑互操作性。 Cake PHP does support SqlServer so you can use all the functions normally. Cake PHP确实支持SqlServer,因此您可以正常使用所有功能。 https://api.cakephp.org/3.3/class-Cake.Database.Driver.Sqlserver.html https://api.cakephp.org/3.3/class-Cake.Database.Driver.Sqlserver.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM