jenniferG Posted July 11, 2007 Share Posted July 11, 2007 we have a database in existance and want to create a table which is defined in a text file. we do not want to load data into a table, but to ceate a table defiunbed in a text file. Thanks, Jennifer Link to comment https://forums.phpfreaks.com/topic/59525-create-table/ Share on other sites More sharing options...
AndyB Posted July 11, 2007 Share Posted July 11, 2007 Sounds simple enough. If it's a small definition, it's probably faster to create the table by 'hand coding' a query. If it's a large definition, it might be worth writing a few lines of code to create the query. So ... what's in the definition file? Link to comment https://forums.phpfreaks.com/topic/59525-create-table/#findComment-295844 Share on other sites More sharing options...
jenniferG Posted July 12, 2007 Author Share Posted July 12, 2007 I have the few lines of code writen, I just don't know how to read it into mysql from th mysql prompt. a colleague of mine sdaid to do the following fro the mysql prompt: use [dbname] mysql > < 'filename' and another says: use [dbname] mysql> Load 'filename' where filename contains the table definitions. Thanks, Jennifer Link to comment https://forums.phpfreaks.com/topic/59525-create-table/#findComment-296309 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.