Тема: SetTmpData vs =
Показать сообщение отдельно
Старый 26.09.2003, 20:39   #3  
mazzy is offline
mazzy
Участник
Аватар для mazzy
Лучший по профессии 2015
Лучший по профессии 2014
Лучший по профессии AXAWARD 2013
Лучший по профессии 2011
Лучший по профессии 2009
 
29,472 / 4494 (208) ++++++++++
Регистрация: 29.11.2001
Адрес: Москва
Записей в блоге: 10
Цитата:
Изначально опубликовано EVGL
После же tmpTable1.setTmpData(tmpTable2) переменная tmpTable1 остается отдельным курсором, но запрашивающим тот же блок данных (по-видимому, тот же файл на диске), что и tmpTable2.
Они будут работать в одной области видимости (scope) временных данных.

См документацию. Ключевое слово "Temporary tables"

Temporary tables are declared just like any other variable, and have the following characteristics:
  • They do not contain any data when they are first created
  • They obey normal scoping rules, that is, their scope is determined by where they are declared
  • They are automatically deleted by MorphX when they go out of scope
  • Temporary tables are not persistent. They are written to local disk storage but not stored in the database