i am new in sql and i would like to ask you if i can make a class in mysql. For example

class test
{
INT AGE;
INT YEAR;
}

CREATE TABLE lol (x test);
can i do this?
Thank you very much

Recommended Answers

All 5 Replies

i am new in sql and i would like to ask you if i can make a class in mysql. For example

class test
{
INT AGE;
INT YEAR;
}

CREATE TABLE lol (x test);
can i do this?
Thank you very much

What is it that you want to do?

No. You cannot do it this way in mysql.

i am new in sql and i would like to ask you if i can make a class in mysql. For example

class test
{
INT AGE;
INT YEAR;
}

CREATE TABLE lol (x test);
can i do this?
Thank you very much

I would like to create a table for a db for e-shop and i would like to add in users info information like
class wish
{
INT product_id;
DATE add_date;
}

CREATE TABLE lol ( username VARCGAR(30), password VARCHAR(30), wish_list wish);
Can i use a table in mysql?
Thank you very much

thank you very much

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.