Copy mysql data to access database_PHP tutorial

WBOY
Release: 2016-07-13 17:00:49
Original
904 people have browsed it

mysql database table sqltable
Fields id, name, sex, email
access database table accesstable
id, name, sex, email
$connect = mysql_connect("localhost", "","");
mysql_select_db("mydatabase");
$sql = "select * from sqltable;
$result = mysql_query($sql};
$connectodbc=odbc_connect(" DSN","USERNAME","PASSWORD");
while($row = mysql_fetch_row($result))
{
$sql="insert into accesstable
values($row["id ",$row["name",$row["sex"],$row["email"])";
odbc_do($connectodbc,$sql);
}
odbc_close($connectodbc ; 🎜>



http://www.bkjia.com/PHPjc/631211.html

www.bkjia.com

true

TechArticlemysql database table sqltable fields id, name, sex, email access database table accesstable id, name, sex, email? $connect = mysql_connect(localhost,,); mysql_select_db(mydatabase); $...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template