How do I add multiple records at once in MySQL by passing an array of, for example, products?
HTTP-POST request, where products is an array with an x number of products.
FRONT-END
addProduct(products: any): Observable<any> {
ret...
Well, I have a small problem, I was asked to convert a text made from a RichTextBox (VB 6) to a normal string, but this RichTextBox also works for Chinese characters and is here that the problem exists.
I'm already in 2 days, I could not do t...
To register the games of a football league the following tables have been defined:
Time (
id int primary key,
nome char(20),
pontos int,
nroVitorias,
golsMarcados int,
golsSofridos int )
Jogo (
idTime1 int,...
Hello, I have the following table:
create table events (
type int not null,
value int not null,
time datetime
unique(type, time)
);
Where in the same I have the following records:
------------------------------------------...
When I create a DataTimeField type field in Django, it has already been defined so that it contains the current date in this way:
dt = models.DateTimeField(auto_now_add=True)
or
dt = models.DataTimeField(auto_now=True)
But that way the...
Greetings,
I have a database with a table of purchase requisitions.
In my html there is a panel where the number of purchase requisitions registered will be displayed.
I was able to SELECT right and print the results on a blank page.
Bu...
I am not able to create a foreign key between two tables, whose type is CHAR :
ALTER TABLE hardware ADD CONSTRAINT fk_INC_LOCALIDADE FOREIGN KEY ( INC_LOCALIDADE ) REFERENCES localidade (INC);
The error is:
ALTER TABLE hardware...