i would like to insert values 12000 to 14999 into (item_id) field, via phpmyadmin
tables and fields have been created, i was wondering if some one here could please help me with a sql query to insert 3000 values into a field.
Im rather new to the managing database, i hope i'm not confusing, here;s what i want,
HTML Code:
#TABLE_NAME
=================================
#ITEM_ID #TAG_ID
=================================
1 128
> >
11999 128
I would like values to be created below these.
So item ID will be incremented from 12000 to 14999?
What about tag ID? Would they all have values of 128, or incremented from 129 to 12129? or would they be null or zero?
Absence of a result is a result, unless defined otherwise.
I used the query provided, but I think its not in the right syntax, but then again, i m new to sql.
HTML Code:
MySQL said: Documentation
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '$i=12000' at line 1
i should mention, values are being added to the existing table 'ws_items', whhich i have substituted in the query provided.
...which means that you will not be using it via phpmyadmin, but rather run it on the server via your web browser. So what you need to do is to create a php file, then within it include the mysql connect portion to connect to the database, then include the snippet provided by aj_nsc, upload it to the server, then physically go to the http://yourdomainname.com/yourscript.php (whatever that may be), and run it that way.
Absence of a result is a result, unless defined otherwise.
Bookmarks