
Quote from lolo on May 23, 2022, 1:15 pmI am using NeoDBpro component, *.mdb database
How is the array stored in this database?я использую компонент NeoDBpro, база данных *.mdb
В каком виде хранится массив в данной БД?
I am using NeoDBpro component, *.mdb database
How is the array stored in this database?
я использую компонент NeoDBpro, база данных *.mdb
В каком виде хранится массив в данной БД?

Quote from Vadim on May 23, 2022, 2:06 pm@lolo
An array is not stored in a database. An array is an array of similarly named variables stored in RAM. This consistency is required when you want to perform the same operations with these variables, for example, to load strings from a file into an array and check for the correct substring in each string.
Массив не хранится в базе данных. Массив - это однотипно названные переменные, которые хранятся в оперативной памяти. Эта однотипность требуется, когда нужно выполнить с этими переменными одинаковые операции, например, загнать в массив строки из файла и проверить на наличие нужной подстроки в каждой строке.
An array is not stored in a database. An array is an array of similarly named variables stored in RAM. This consistency is required when you want to perform the same operations with these variables, for example, to load strings from a file into an array and check for the correct substring in each string.
Массив не хранится в базе данных. Массив - это однотипно названные переменные, которые хранятся в оперативной памяти. Эта однотипность требуется, когда нужно выполнить с этими переменными одинаковые операции, например, загнать в массив строки из файла и проверить на наличие нужной подстроки в каждой строке.

Quote from lolo on May 23, 2022, 5:32 pm@vadim
Well, why, in fact, the array looks like this [**,**,**,**], that is, it can be stored in the database in the same form
I'm going to use the data from the database to form the data of a temporary array in which the program settings will be stored
and change as the user works, and if the user saves the settings, then the array data is written to the database, that is, it turns out, something like a data tuple.If I understand correctly, then the array can be formed like this "[name[1]],[question[1]],[answer[1]],[answer[2]],[answer[3]],[truanswer[1]],[truanswer[ 2]],[truanswer[3]],[scoreanswer[1],][scoreanswer[2]],[scoreanswer[3]]"
in db it looks like this
field Name data Name
field question data Text
field answer data answer-1, answer-2, answer-3
field truanswer data False, True, False
scoreanswer field data -1, 1, -1well, in principle, if it doesn’t work out with the usual separator, then you can use the memo field and enter data into lines.
Ну почему же, по факту массив выглядит где-то так [**,**,**,**], то есть в БД можно хранить в таком же виде
я же предполагаю использовать данные из БД для формирования данных временного массива в котором будут храниться настройки программы
и изменяться по ходу работы пользователя, ну и если пользователь сохраняет настройки, то данные массива записываются в БД, то есть получиться, что-то в роди кортежа данных.Если я правильно понял, то массив можно сформировать так "[name[1]],[question[1]],[answer[1]],[answer[2]],[answer[3]],[truanswer[1]],[truanswer[2]],[truanswer[3]],[scoreanswer[1]],[scoreanswer[2]],[scoreanswer[3]]"
в БД это выглядит так
поле Name данные Имя
поле question данные Text
поле answer данные ответ-1, ответ-2, ответ-3
поле truanswer данные False, True, False
поле scoreanswer данные -1, 1, -1ну в принципе, если не получиться с обычным разделителем, то можно использовать поле memo и вписывать данные в строки.
Well, why, in fact, the array looks like this [**,**,**,**], that is, it can be stored in the database in the same form
I'm going to use the data from the database to form the data of a temporary array in which the program settings will be stored
and change as the user works, and if the user saves the settings, then the array data is written to the database, that is, it turns out, something like a data tuple.
If I understand correctly, then the array can be formed like this "[name[1]],[question[1]],[answer[1]],[answer[2]],[answer[3]],[truanswer[1]],[truanswer[ 2]],[truanswer[3]],[scoreanswer[1],][scoreanswer[2]],[scoreanswer[3]]"
in db it looks like this
field Name data Name
field question data Text
field answer data answer-1, answer-2, answer-3
field truanswer data False, True, False
scoreanswer field data -1, 1, -1
well, in principle, if it doesn’t work out with the usual separator, then you can use the memo field and enter data into lines.
Ну почему же, по факту массив выглядит где-то так [**,**,**,**], то есть в БД можно хранить в таком же виде
я же предполагаю использовать данные из БД для формирования данных временного массива в котором будут храниться настройки программы
и изменяться по ходу работы пользователя, ну и если пользователь сохраняет настройки, то данные массива записываются в БД, то есть получиться, что-то в роди кортежа данных.
Если я правильно понял, то массив можно сформировать так "[name[1]],[question[1]],[answer[1]],[answer[2]],[answer[3]],[truanswer[1]],[truanswer[2]],[truanswer[3]],[scoreanswer[1]],[scoreanswer[2]],[scoreanswer[3]]"
в БД это выглядит так
поле Name данные Имя
поле question данные Text
поле answer данные ответ-1, ответ-2, ответ-3
поле truanswer данные False, True, False
поле scoreanswer данные -1, 1, -1
ну в принципе, если не получиться с обычным разделителем, то можно использовать поле memo и вписывать данные в строки.

Quote from Vadim on May 23, 2022, 8:46 pm@lolo
In a broad sense, yes, then the entire database can be understood as an array.
Yes, what you describe should work. One record (row) will store the fields (column data) as array elements.
В широком смысле да, тогда и всю базу данных можно понимать как массив.
Да, то, что Вы описываете должно работать. Одна запись (строка) будет хранить поля (данные столбцов), как элементы массива.
In a broad sense, yes, then the entire database can be understood as an array.
Yes, what you describe should work. One record (row) will store the fields (column data) as array elements.
В широком смысле да, тогда и всю базу данных можно понимать как массив.
Да, то, что Вы описываете должно работать. Одна запись (строка) будет хранить поля (данные столбцов), как элементы массива.