If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > MySQL 5.1 on C#

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-31-09, 21:33
gigz09 gigz09 is offline
Registered User
 
Join Date: Jul 2009
Posts: 4
MySQL 5.1 on C#

hi guys, just wanna ask further questions about this.. im new in c#-MySQL integration..

i already created some tables and columns.. my problem now is how to create something like this:

if dbColumn in not exist
then create
else
do nothing..

i already tried some examples in the net and tried to modify it but it seems doesnt have effect at all.. all i can find is not exist and exist through database and tables but not in columns.. thanks in advance ^_^
Reply With Quote
  #2 (permalink)  
Old 08-01-09, 07:07
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,534
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #3 (permalink)  
Old 08-02-09, 21:48
gigz09 gigz09 is offline
Registered User
 
Join Date: Jul 2009
Posts: 4
^

ok thanks i'll try that =)


ooppss i missed some info in my question

it should be like this..

if dbRow is not exist
then create dbRow

im trying to insert a VALUE/data to column=)

am i correct? the data inside the columns were called rows? =)

sorry for noob question =)

Last edited by gigz09; 08-02-09 at 21:53.
Reply With Quote
  #4 (permalink)  
Old 08-02-09, 23:01
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,534
column, row...

i am totally confused

maybe you can show using sample data?

also, it is a good idea if you would please do a SHOW CREATE TABLE for me
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #5 (permalink)  
Old 08-03-09, 02:00
gigz09 gigz09 is offline
Registered User
 
Join Date: Jul 2009
Posts: 4
^_^

im sorry =)

i was about to INSERT data to columns wherein those who already inputted will be ignored and those who are not, will create datas, inside the specific column =)


about the SHOW CREATE TABLE, theres an error

Quote:
ERROR 1064 (42000): 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 '' at
line 1
im using mysql 5.1...

could i achieve this by applying unique value in my columns? how can i manage to put them directly when i already created lots of tables and columns.. thanks =)
Reply With Quote
  #6 (permalink)  
Old 08-03-09, 02:01
gigz09 gigz09 is offline
Registered User
 
Join Date: Jul 2009
Posts: 4
..sorry double post...
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On