不帅 发表于 2015-2-4 00:18:52

PHP网页设计Tutorial for migrating data from MS ...

exit来实现结束后面的PHP语句的执行,缩小调试范围,特别是数据库交互的程序,先输出个SQL语句看看,对了,再分析怎么会插入/删除不成功呢?这样对查错很有帮助。access|mysql   Tutorial for migrating data from MS Access to MySQL


One of the main reasons I started FreeSQL.org is to open up newbie users to the wide world of enterprise-level database access. One of the most common questions I'm asked is "how do I upload my data from my Access database to my MySQL database?" This is far easier than you think and is done using an often overlooked feature of Microsoft Access. Namely, the ability to import, export, and link to non-Access data sources. For now lets just consider MySQL.
The first step is to provide the capability for your windows system to communicate with the remote MySQL server. This is done using MyODBC. If you don't have it installed already, get it from here.
Recently I had to move a database of zipcodes to my MySQL server. I will list the steps I took to migrate this data.

[*]In the windows 98 control panel (or equivalent in WinME, Windows 2000, or XP) open the ODBC Data Source Administrator. You will want to create a new System data source.

[*]Choose "Add", then select the MySQL driver. You should see the following form. Give it a meaningful DSN name, in my case I called it remoteZipCodes. The DSN is how you will identify this connection when you want to use it from another application. Fill in the rest of the necessary information correctly. One tip, MySQL is case sensistive. Make sure you get the username, password, and database case correct.

[*]Here is my source data. A single Access table containing zipcodes by city and state, along with their latitude and longitude.

[*]We want to "export" our data to the remote MySQL server. Select the table you want to export and choose "file/save as/export…" from the main Access menu, then choose "to an external file or database".
[*]The "save table" dialog box will then open and by default will try to export your table to another Access MDB. You change the format of the destination by choosing from the "save as type" combo box. In our case we want to select "ODBC Databases ()". It is probably at the very bottom of the list.

Next, this little window will open

to allow you to change the name of the table that will be created in the remote database.
[*]When you select "OK" you should then see your list of ODBC data sources. Select the DSN you created in step 2.
[*]Once you select the data source, the export begins immediately. Be patient, it may take a while, but it does work!

Try experimenting with importing and especially linking too! You will find that you can read and actually query data from Oracle, PostgreSQL (my other favorite database), Excel spreadsheets, and even text files. To link a table into an Access MDB, on the Table tab select "new" then "link"....I think you'll figure out the rest!
理解动态语言的概念,运做机制,熟悉PHP语法

乐观 发表于 2015-2-4 11:29:16

微软最近出的新字体“微软雅黑”,虽然是挺漂亮的,不过firefox支持的不是很好,所以能少用还是少用的好。

谁可相欹 发表于 2015-2-9 08:51:36

最后祝愿,php会给你带来快乐的同时 你也会给他带来快乐。

精灵巫婆 发表于 2015-2-9 09:23:10

个人呢觉得,配wamp 最容易漏的一步就是忘了把$PHP$目录下的libmysql.dll拷贝到windows系统目录的system32目录下,还有重启apache。

柔情似水 发表于 2015-2-11 21:19:35

有位前辈曾经跟我说过,phper 至少要掌握200个函数 编起程序来才能顺畅点,那些不熟悉的函数记不住也要一拿手册就能找到。所以建议新手们没事就看看php的手册(至少array函数和string函数是要记牢的)。

海妖 发表于 2015-2-23 18:48:54

找到的的资料很多都是在论坛里的,需要注册,所以我一般没到一个论坛都注册一个id,所有的id都注册成一样的,这样下次再进来的时候就不用重复注册啦。当然有些论坛的某些资料是需要的付费的。

飘灵儿 发表于 2015-3-4 16:22:00

要进行开发,搭建环境是首先需要做的事,windows下面我习惯把环境那个安装在C盘下面,因为我配的环境经常出现诡异事件,什么事都没做环境有的时候就不能用啦。

小女巫 发表于 2015-3-11 20:18:58

这些都是最基本最常用功能,我们这些菜鸟在系统学习后,可以先对这些功能深入研究。

第二个灵魂 发表于 2015-3-14 22:27:10

我学习了一段时间后,我发现效果并不好(估计是我自身的问题)。因为一个人的精力总是有限的,同时学习这么多,会导致每个的学习时间都得不到保证。

兰色精灵 发表于 2015-3-17 07:02:18

首先声明:我是一个菜鸟,是一个初学者。学习了一段php后总是感觉自己没有提高,无奈。经过反思我认为我学习过程中存在很多问题,我改变了学习方法后自我感觉有了明显的进步。

不帅 发表于 2015-3-24 00:19:58

php里的数组为空的时候是不能拿来遍历的;(这个有点低级啊,不过我刚被这个边界问题墨迹了好长一会)

只想知道 发表于 2015-3-25 13:07:16

基础有没有对学习php没有太大区别,关键是兴趣。

admin 发表于 2015-4-3 13:35:29

其实也不算什么什么心得,在各位大侠算是小巫见大巫了吧,望大家不要见笑,若其中有错误的地方请各位大虾斧正。

爱飞 发表于 2015-4-4 23:00:36

学好程序语言,多些才是王道,写两个小时代码的作用绝对超过看一天书,这个我是深有体会(顺便还能练打字速度)。

活着的死人 发表于 2015-4-18 18:48:56

没接触过框架的人,也不用害怕,其实框架就是一种命名规范及插件,学会一个框架其余的框架都很好上手的。

小妖女 发表于 2015-4-24 13:51:12

为了以后维护的方便最好是代码上都加上注释,“予人方便,自己方便”。此外开发文档什么的最好都弄齐全。我觉得这是程序员必备的素质。虽然会消耗点很多的时间。但是确实是非常有必要的。

小魔女 发表于 2015-5-1 02:18:19

Ps:以上纯属原创,如有雷同,纯属巧合

再见西城 发表于 2015-5-1 23:09:18

首先我是坚决反对新手上来就用框架的,因为对底层的东西一点都不了解,造成知识上的真空,会对以后的发展不利。我的观点上手了解下框架就好,代码还是手写。当然啦如果是位别的编程语言的高手的话,这个就另当别论啦。

飘飘悠悠 发表于 2015-6-4 02:42:06

当然这种网站的会员费就几十块钱。

蒙在股里 发表于 2015-6-28 13:47:25

多看优秀程序员编写的代码,仔细理解他们解决问题的方法,对自身有很大的帮助。
页: [1] 2
查看完整版本: PHP网页设计Tutorial for migrating data from MS ...